/* Shared service identity and controls. Composed video frames own their typography. */
@font-face { font-family:'DM Sans'; src:url('fonts/dm-sans.woff') format('woff'); font-weight:100 900; font-display:swap; }
@font-face { font-family:'Instrument Serif'; src:url('fonts/instrument-serif.woff') format('woff'); font-weight:400; font-display:swap; }
:root { --ink:#192022; --muted:#626b69; --line:#d8ddd8; --ground:#eeefeb; --paper:#fafaf7; --soft:#e2e8e1; --accent:#222d2a; --accent-dark:#365f45; --error:#9d3530; }
* { box-sizing:border-box; }
body { margin:0; background:var(--ground); color:var(--ink); font:14px/1.5 'DM Sans',system-ui,sans-serif; }
button,input,textarea,select { font:inherit; color:inherit; }
a { color:var(--accent); }
p { margin:0 0 16px; }
h1 { margin:0 0 20px; font:400 36px/1.15 'Instrument Serif',Georgia,serif; }
h2 { margin:0 0 12px; font-size:18px; font-weight:500; line-height:1.4; }
h3 { font-size:14px; font-weight:500; }
.top { display:flex; align-items:center; justify-content:space-between; min-height:62px; padding:9px 24px; gap:20px; background:var(--paper); border-bottom:1px solid var(--line); }
.top-name { display:flex; align-items:center; gap:6px; font-size:27px; font-weight:500; letter-spacing:-1px; line-height:1; color:var(--ink); text-decoration:none; flex-shrink:0; }
.top-name img { display:block; width:32px; height:32px; object-fit:contain; }
.top-user { display:flex; align-items:center; flex-wrap:wrap; gap:18px; min-width:0; font-size:13px; }
.top-user a,.top-user>span { min-width:0; max-width:100%; overflow-wrap:anywhere; }
.top-user a { color:inherit; text-decoration:none; display:inline-flex; align-items:center; min-height:44px; }
.top-user a:hover { color:var(--accent-dark); }
.top-user form { margin:0; }
.page { max-width:none; margin:0; padding:16px 24px 28px; }
.page-narrow { max-width:640px; margin:auto; }
.page-head { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:22px; }
.page-head h1 { margin:6px 0; }
.button,.button-quiet { display:inline-flex; align-items:center; justify-content:center; gap:8px; border:0; border-radius:24px; min-height:44px; padding:12px 19px; font:500 14px/1.5 'DM Sans',system-ui,sans-serif; text-decoration:none; cursor:pointer; }
.button { background:var(--accent); color:#f8f8f2; }
.button:hover { background:var(--accent-dark); }
.button-quiet { background:var(--soft); color:var(--ink); padding:10px 16px; }
.button-quiet:hover { background:#d8e3d3; }
.button:disabled,.button-quiet:disabled { opacity:.45; cursor:not-allowed; }
.form { padding:22px; border:0; border-radius:12px; background:var(--paper); }
.form+.form { margin-top:24px; }
.field { margin-bottom:20px; min-width:0; }
.field label { display:block; margin-bottom:6px; font-weight:400; }
.field input { width:100%; min-height:44px; padding:10px 12px; border:1px solid var(--line); border-radius:8px; background:var(--paper); }
.notice { margin:0 0 16px; padding:12px 16px; background:var(--soft); border:0; border-radius:8px; overflow-wrap:anywhere; }
.notice-error { background:#f1e7e0; color:var(--error); }
.error { margin:8px 0 16px; color:var(--error); }
.note,.lead { color:var(--muted); }
.note { margin-top:12px; font-size:13px; }
.lead { margin:0 0 24px; }
.empty { padding:20px; border-radius:10px; background:var(--paper); color:var(--muted); }
.steps { margin:0 0 20px; padding-left:24px; }
.steps li { margin-bottom:20px; }
.qr-code { display:block; margin:16px 0; }
.qr-code svg { display:block; width:164px; height:auto; background:#fff; }
.key { display:inline-block; max-width:100%; overflow-wrap:anywhere; margin-top:4px; padding:6px 12px; font:16px/1.4 ui-monospace,Menlo,Consolas,monospace; }
.field input.code { width:300px; max-width:100%; font-size:24px; letter-spacing:5px; }
[hidden] { display:none!important; }
:focus-visible { outline:2px solid #426c52; outline-offset:4px; }
.visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.eyebrow { color:var(--muted); font-size:13px; letter-spacing:.16em; text-transform:uppercase; }
.service-grid { display:grid; grid-template-columns:minmax(0,1fr) 360px; gap:32px; align-items:start; }
.service-table-scroll { overflow-x:auto; max-width:100%; }
.service-table { width:100%; border-collapse:collapse; font-size:14px; }
.service-table th,.service-table td { text-align:left; padding:10px; border-bottom:1px solid var(--line); }
.service-form-section { border-top:1px solid var(--line); padding-top:24px; }
.settings,.rail { overflow-wrap:anywhere; }
@media(max-width:780px) { .top { padding:10px 18px; flex-wrap:wrap; gap:12px; } .top-user { gap:12px; } .page { padding:20px 18px 28px; } .service-grid { grid-template-columns:1fr; } }
@media(max-width:540px) { .top-user { width:100%; font-size:13px; gap:10px; } .page-head { flex-wrap:wrap; gap:12px; } h1 { font-size:32px; } .form { padding:18px; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; animation:none!important; transition:none!important; } }
/* When a job a page follows has ended (ticket 214, alerts.js): the offer to be told, and the message on the page. */
.alert-offer { margin:16px 0; padding:14px 18px; background:var(--paper); border:1px solid var(--line); border-radius:10px; }
.alert-offer p:last-child { margin:0; }
.alert-offer-buttons { display:flex; flex-wrap:wrap; gap:10px; }
.ready-message { position:fixed; z-index:50; right:24px; bottom:24px; width:min(420px, calc(100vw - 32px)); padding:16px 18px; background:var(--paper); border:1px solid var(--line); border-left:6px solid var(--accent-dark); border-radius:10px; box-shadow:0 8px 28px rgba(25,32,34,.18); overflow-wrap:anywhere; }
.ready-message.is-failed { border-left-color:var(--error); }
.ready-message p { margin:0 0 12px; }
.ready-message p strong { display:block; font-size:16px; }
.ready-message-buttons { display:flex; flex-wrap:wrap; gap:10px; margin:0 !important; }
@media (max-width:600px) { .ready-message { right:16px; left:16px; bottom:16px; width:auto; } }
