:root { --dim: #5e6862; --line-2: #c9c4b8; --ok: #256d50; --warn: #8c4f14; --err: #a52e32; }
[hidden] { display: none !important; }
body { overflow-wrap: break-word; }
body > header { flex-wrap: wrap; }
.wrapper { padding-bottom: 16px; }
#paper { overflow-wrap: anywhere; }
#paper table { display: block; overflow-x: auto; max-width: 100%; }
#dock { position: static !important; width: calc(100% - 32px); max-width: 908px; margin: 8px auto 24px; border: 1px solid #c9c4b8; border-radius: 18px; box-shadow: none; }
#dock .inner { padding: 24px; }
#step-banner { flex-wrap: wrap; }
#sign-btn { min-height: 52px; background: #ae4e38 !important; color: #fff !important; }
#sign-btn:disabled { opacity: .6; }
#sign-msg, .video-message.error { color: #a12e31; }
#dock input[type=text] { font-size: 16px; min-height: 48px; color: #17201e; background: #fffdf8; border-color: #aaa99f; }
#dock .field { min-width: 0; flex-basis: 240px; }
#dock label.consent { color: #46534a; font-size: 14px; }
#dock input[type=checkbox], .video-consent input { width: 22px; height: 22px; flex-shrink: 0; }
.video-card { margin: 24px 0 12px; border: 1px solid #c9c4b8; border-radius: 18px; padding: 26px; background: #fffdf8; color: #17201e; }
.video-kicker { margin: 0 0 6px; font: 700 11px/1.6 ui-monospace,monospace; color: #8e4536; text-transform: uppercase; letter-spacing: .12em; }
.video-card h2 { font: 400 29px/1.15 Georgia,serif; margin: 0 0 8px; }
.video-card p { margin: 8px 0 16px; font-size: 14px; line-height: 1.6; }
.video-heading { display: flex; align-items: start; gap: 16px; justify-content: space-between; }
#video-policy { font-size: 12px; white-space: nowrap; padding: 5px 10px; border: 1px solid #c9c4b8; border-radius: 30px; }
.video-script { border-left: 3px solid #d86e55; padding: 12px 16px; margin: 20px 0; background: #f4f0e7; }
.video-script strong { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
#video-script { margin: 6px 0 0; }
.video-stage { min-height: 200px; background: #eeeadf; border: 1px dashed #b7b5aa; border-radius: 12px; overflow: hidden; position: relative; }
#video-empty { text-align: center; padding: 32px 16px; color: #526057; }
#video-empty b { display: block; font: 400 46px Georgia,serif; color: #304f40; }
#video-preview { width: 100%; max-height: 360px; display: block; aspect-ratio: 16/9; object-fit: contain; background: #18261f; }
.video-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.video-button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: 10px 16px; border: 1px solid #adb2a6; border-radius: 9px; background: #fffdf8; color: #17201e; font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.3; cursor: pointer; text-decoration: none; }
.video-button.primary { background: #294d3c; border-color: #294d3c; color: #fff; }
.video-button:disabled { opacity: .55; cursor: not-allowed; }
.video-button.recording { background: #a52e32; color: #fff; }
.video-consent { display: flex; align-items: start; gap: 12px; font-size: 14px; line-height: 1.55; margin-top: 20px; }
.video-consent input { margin: 2px 0 0; accent-color: #294d3c; }
.video-message { min-height: 22px; color: #355a43; }
#video-details { font: 12px ui-monospace,monospace; }
#video-progress { width: 100%; margin: 14px 0; accent-color: #294d3c; }
#video-dates { padding: 12px; background: #edf3e7; border-radius: 8px; color: #294d3c; font-size: 13px; }
#saved-videos { margin-top: 20px; }
.saved-video { padding: 16px; margin-bottom: 10px; background: #edf3e7; border: 1px solid #bacbbb; border-radius: 12px; text-align: left; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #526bb1; outline-offset: 3px; }
@media(max-width:600px) {
  header { position: static; padding: 14px 16px; gap: 8px; }
  .wrapper { padding: 14px 12px; }
  #paper { padding: 26px 18px; border-radius: 12px; font-size: 16px; }
  .video-card { padding: 20px 16px; }
  .video-heading { flex-direction: column; gap: 8px; }
  .video-actions > button { flex: 1 1 auto; }
  #dock { width: calc(100% - 24px); }
  #dock .inner { padding: 20px 16px; padding-bottom: max(20px,env(safe-area-inset-bottom)); }
  #dock .tabs button { min-height: 44px; }
  #step-subtitle { font-size: 10px; }
  #paper .rs-sig { min-width: 0; }
  footer { color: #5e6862; }
}
@media(prefers-reduced-motion:reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
#trace-grid{display:none!important}.video-button.primary{background:#294d3c!important;border-color:#294d3c!important;color:#fff!important}.video-button.recording{background:#a52e32!important;color:#fff!important}
#step-title{flex:1 1 100%;font:400 23px/1.2 Georgia,serif}#step-action-mode{display:none}#step-subtitle{font-size:11px}#step-banner{align-items:flex-start}#done{background:#fffdf8;border-color:#b4c6ab}#dl-btn{min-height:48px}.header-pill{min-width:0}.header-pill .pill{max-width:220px;overflow:hidden;text-overflow:ellipsis}
