:root {
  --ink: #F4F5FF;
  --muted: #9CA3BC;
  --line: rgba(226,229,255,.09);
  --paper: #000000;
  --paper-2: #09080f;
  --white: #08070c;
  --accent: #5d3fd3;
  --accent-dark: #6d50de;
  --danger: #FF6B6B;
  --success: #63D7A5;
  --radius: 8px;
  --shell: 1080px;
  --shadow: 0 14px 34px rgba(23, 23, 21, .07);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { color: inherit; }
.shell { width: min(calc(100% - 48px), var(--shell)); margin: 0 auto; }
.hidden { display: none !important; }
.site-header { border-bottom: 1px solid var(--line); background: #000; position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px); }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.brand-mark { width: 31px; height: 31px; display: inline-grid; place-items: center; background: var(--ink); color: var(--paper); font-size: 17px; }
.brand-word { font-size: 17px; }
.site-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; color: var(--muted); font-size: 14px; }
.site-nav a { padding: 28px 0 24px; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav .is-current { border-bottom-color: var(--ink); color: var(--ink); }
.header-action { border: 1px solid var(--ink); padding: 9px 14px; font-size: 13px; font-weight: 700; }
.hero { padding: 94px 0 68px; border-bottom: 1px solid var(--line); }
.eyebrow, .section-kicker, .aside-label { font-size: 11px; line-height: 1; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: var(--accent); }
.hero h1, .error-page h1 { max-width: 840px; margin: 17px 0 20px; font-family: inherit; font-weight: 500; font-size: clamp(48px, 7vw, 84px); line-height: .98; letter-spacing: -.045em; }
.hero-copy { max-width: 690px; margin: 0; font-size: 20px; line-height: 1.55; color: var(--muted); }
.hero-notes { display: flex; gap: 22px; margin-top: 30px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.hero-notes span + span::before { content: '·'; margin-right: 22px; color: rgba(226,229,255,.17); }
.signer-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 70px; padding: 72px 0 110px; }
.work-section { display: grid; grid-template-columns: 54px minmax(0, 1fr); padding: 0 0 58px; margin-bottom: 58px; border-bottom: 1px solid var(--line); }
.section-number { font-family: inherit; font-size: 15px; color: var(--muted); padding-top: 2px; }
.section-content h2, .result-section h2 { margin: 12px 0 12px; font-family: inherit; font-size: clamp(30px, 4vw, 46px); line-height: 1.06; letter-spacing: -.03em; font-weight: 500; }
.section-copy { max-width: 650px; color: var(--muted); margin: 0 0 28px; }
.drop-zone { min-height: 210px; border: 1px solid rgba(226,229,255,.17); background: #050408; display: flex; flex-direction: column; justify-content: center; align-items: center; cursor: pointer; transition: background .18s ease, border-color .18s ease, transform .18s ease; outline: none; }
.drop-zone:hover, .drop-zone:focus-visible, .drop-zone.is-dragging { background: var(--white); border-color: var(--ink); }
.drop-zone.is-dragging { transform: translateY(-2px); }
.drop-title { font-weight: 800; font-size: 18px; }
.drop-subtitle { margin-top: 4px; color: var(--muted); }
.drop-limit { margin-top: 17px; font-size: 12px; color: var(--muted); }
.url-row { margin-top: 24px; }
.url-row > label, .field-group label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.inline-control { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
input, select { width: 100%; min-height: 47px; border: 1px solid rgba(226,229,255,.17); background: var(--white); border-radius: 0; padding: 10px 12px; color: var(--ink); outline: none; }
input:focus, select:focus { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.button { min-height: 45px; border: 1px solid var(--ink); display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; cursor: pointer; font-weight: 800; font-size: 13px; letter-spacing: .01em; transition: transform .15s ease, background .15s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--ink); color: var(--paper); }
.button-primary:hover { background: #2a2a27; }
.button-secondary { background: transparent; color: var(--ink); }
.button-secondary:hover { background: var(--white); }
.button-large { min-height: 58px; min-width: 210px; font-size: 15px; }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.progress-wrap { margin-top: 22px; }
.progress-head { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 8px; font-size: 12px; font-weight: 800; }
.progress-track { height: 5px; background: #171323; overflow: hidden; }
.progress-track span { display: block; width: 0; height: 100%; background: var(--ink); transition: width .22s ease; }
.progress-wrap.strong .progress-track { height: 8px; }
.ipa-list { display: grid; gap: 0; margin-top: 24px; }
.ipa-row { display: grid; grid-template-columns: 1fr auto; gap: 18px; padding: 17px 0; border-top: 1px solid var(--line); }
.ipa-row:last-child { border-bottom: 1px solid var(--line); }
.ipa-title { font-weight: 800; }
.ipa-meta { display: flex; flex-wrap: wrap; gap: 5px 16px; margin-top: 5px; color: var(--muted); font-size: 12px; }
.ipa-remove { border: 0; background: transparent; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: 12px; }
.setup-choice { margin-bottom: 22px; }
.config-summary { margin-top: 12px; border-left: 2px solid var(--accent); padding: 13px 15px; background: #08070c; font-size: 13px; }
.config-summary strong { display: block; font-size: 15px; margin-bottom: 4px; }
.config-summary .meta-line { color: var(--muted); }
.file-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.file-field { min-height: 92px; border: 1px solid rgba(226,229,255,.17); background: #08070c; padding: 15px; cursor: pointer; display: flex; flex-direction: column; justify-content: space-between; }
.file-field:hover { border-color: var(--ink); background: var(--white); }
.file-field span { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.file-field strong { display: block; margin-top: 12px; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-field.compact { min-height: 82px; }
.password-field { margin-top: 15px; }
.text-action { border: 0; background: transparent; padding: 0; margin-top: 15px; font-weight: 700; font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.inline-panel { margin-top: 22px; padding: 21px; border: 1px solid var(--line); background: var(--paper-2); }
.panel-actions { display: flex; gap: 16px; align-items: center; margin-top: 18px; }
.panel-actions .text-action { margin-top: 0; }
.check-row { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; cursor: pointer; }
.check-row input { width: 16px; min-height: 16px; height: 16px; margin-top: 3px; accent-color: var(--ink); }
.check-row span { font-size: 14px; }
.check-row small { display: block; color: var(--muted); margin-top: 2px; }
.advanced-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; text-align: left; border: 0; background: transparent; padding: 0; cursor: pointer; }
.advanced-toggle strong { display: block; margin-top: 10px; font-family: inherit; font-size: 30px; line-height: 1.1; font-weight: 500; letter-spacing: -.025em; }
.toggle-mark { width: 38px; height: 38px; border: 1px solid var(--line); display: grid; place-items: center; font-size: 23px; font-weight: 300; }
.advanced-options { padding-top: 30px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.option-list { display: grid; grid-template-columns: 1fr 1fr; margin: 21px 0; padding: 17px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); column-gap: 24px; }
.asset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.technical-note, .action-note { color: var(--muted); font-size: 12px; line-height: 1.55; }
.sign-action-section { padding-left: 54px; }
.action-note { max-width: 600px; margin-top: 13px; }
.notice { padding: 14px 16px; margin: 0 0 18px; border: 1px solid; font-size: 14px; }
.notice-error { border-color: #bd746d; background: #210e17; color: #ffb3bd; }
.notice-success { border-color: #80aa93; background: #0c211b; color: #63D7A5; }
.result-section { margin: 64px 0 0 54px; padding: 42px 0; border-top: 1px solid var(--line); }
.result-section > h2 { margin-bottom: 30px; }
.result-card { padding: 25px 0; border-top: 1px solid var(--line); }
.result-card:last-child { border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.result-card.is-error { color: var(--danger); }
.result-meta { display: grid; grid-template-columns: 1.2fr 1.5fr .6fr; gap: 20px; }
.result-meta small { display: block; color: var(--muted); font-size: 10px; letter-spacing: .1em; margin-bottom: 4px; }
.result-meta strong { font-size: 14px; word-break: break-word; }
.result-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.copy-link { margin-left: 4px; }
.signer-aside { border-left: 1px solid var(--line); padding-left: 28px; align-self: start; position: sticky; top: 110px; }
.aside-block { padding: 0 0 27px; margin-bottom: 27px; border-bottom: 1px solid var(--line); }
.aside-block p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.plain-link { font-weight: 800; text-decoration: underline; text-underline-offset: 4px; font-size: 13px; }
.site-footer { border-top: 1px solid var(--line); padding: 60px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr repeat(3, .7fr); gap: 45px; }
.footer-lead p { max-width: 360px; color: var(--muted); font-size: 13px; margin: 18px 0; }
.footer-column { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.footer-column strong { margin-bottom: 5px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.footer-column a { color: var(--muted); }
.footer-column a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; margin-top: 50px; padding-top: 21px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.error-page { min-height: 58vh; padding: 110px 0; }
.error-page p { max-width: 620px; color: var(--muted); margin-bottom: 28px; }

@media (max-width: 900px) {
  .site-nav { display: none; }
  .header-action { margin-left: auto; }
  .signer-layout { grid-template-columns: 1fr; gap: 40px; }
  .signer-aside { position: static; border-left: 0; border-top: 1px solid var(--line); padding: 35px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .aside-block { border-bottom: 0; margin: 0; padding: 0; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-column:last-child { display: none; }
}
@media (max-width: 680px) {
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .header-inner { min-height: 64px; }
  .brand-word { font-size: 15px; }
  .hero { padding: 64px 0 46px; }
  .hero h1 { font-size: 49px; }
  .hero-copy { font-size: 17px; }
  .hero-notes { display: block; }
  .hero-notes span { display: block; margin-top: 4px; }
  .hero-notes span + span::before { display: none; }
  .signer-layout { padding: 48px 0 80px; }
  .work-section { grid-template-columns: 1fr; gap: 10px; margin-bottom: 45px; padding-bottom: 45px; }
  .section-number { font-size: 12px; }
  .file-field-grid, .form-grid, .option-list, .asset-grid { grid-template-columns: 1fr; }
  .inline-control { grid-template-columns: 1fr; }
  .sign-action-section, .result-section { padding-left: 0; margin-left: 0; }
  .button-large { width: 100%; }
  .result-meta { grid-template-columns: 1fr; gap: 10px; }
  .result-actions { display: grid; }
  .signer-aside { grid-template-columns: 1fr; }
  .aside-block { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-lead { grid-column: 1 / -1; }
  .footer-column:last-child { display: flex; }
  .footer-bottom { display: block; }
  .footer-bottom span { display: block; margin-top: 8px; }
}

/* Device identification */
.udid-hero { padding-bottom: 62px; }
.udid-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 70px; padding: 72px 0 110px; }
.udid-main { min-width: 0; }
.udid-action { padding: 0 0 58px; margin-bottom: 58px; border-bottom: 1px solid var(--line); }
.udid-action h2, .udid-steps h2 { max-width: 760px; margin: 13px 0 14px; font-family: inherit; font-size: clamp(31px, 4.2vw, 48px); line-height: 1.04; letter-spacing: -.035em; font-weight: 500; }
.udid-action > p { max-width: 690px; color: var(--muted); margin: 0 0 26px; }
.udid-live-status { min-height: 21px; margin-top: 16px; color: var(--muted); font-size: 13px; }
.device-url-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; max-width: 760px; }
.device-url-row input { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 13px; }
.udid-steps { padding-bottom: 22px; }
.process-list { margin-top: 30px; border-top: 1px solid var(--line); }
.process-row { display: grid; grid-template-columns: 54px 1fr; gap: 0; padding: 22px 0; border-bottom: 1px solid var(--line); }
.process-row > span { font-family: inherit; color: var(--muted); font-size: 13px; }
.process-row strong { display: block; font-size: 15px; margin-bottom: 4px; }
.process-row p { margin: 0; color: var(--muted); font-size: 14px; max-width: 620px; }
.udid-result-hero { padding-bottom: 58px; }
.udid-result-layout { padding: 62px 0 110px; }
.device-result { max-width: 900px; }
.device-field { padding: 20px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.device-field small { display: block; margin-bottom: 6px; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.device-field strong { display: block; font-size: 16px; overflow-wrap: anywhere; }
.device-field span { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.device-field-primary { padding-top: 0; }
.device-field-primary strong { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: clamp(18px, 3vw, 26px); letter-spacing: -.025em; }
.device-result-grid { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 28px; }
.udid-result-actions { margin-top: 32px; }
.udid-result-state { min-height: 240px; }
.udid-aside { top: 110px; }

@media (max-width: 900px) {
  .udid-layout { grid-template-columns: 1fr; gap: 42px; }
  .udid-aside { position: static; border-left: 0; border-top: 1px solid var(--line); padding: 35px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .udid-aside .aside-block { border-bottom: 0; margin: 0; padding: 0; }
}
@media (max-width: 680px) {
  .udid-layout { padding: 48px 0 80px; }
  .udid-action { padding-bottom: 44px; margin-bottom: 44px; }
  .device-url-row { grid-template-columns: 1fr; }
  .process-row { grid-template-columns: 42px 1fr; }
  .device-result-grid { grid-template-columns: 1fr; }
  .udid-result-actions { display: grid; }
  .udid-result-actions .button { width: 100%; }
  .udid-aside { grid-template-columns: 1fr; }
  .udid-aside .aside-block { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
}
.device-context { margin: 0 0 24px; padding: 16px 0 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.device-context strong { display: block; margin-top: 9px; font-size: 16px; }
.device-context span, .device-context small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.device-context small { max-width: 620px; line-height: 1.55; }

.library-panel { padding: 22px; margin: 24px 0; border: 1px solid var(--line, #ddd); border-radius: 12px; }
.library-panel h3 { margin-top: 0; }
.library-panel label { display: block; margin-bottom: 8px; }
.library-items { max-height: 320px; overflow-y: auto; margin: 16px 0; }
.library-items .check-row { display: flex; padding: 10px 0; }
.library-items small { display: block; opacity: .65; }
#library-status { overflow-wrap: anywhere; }
@media (max-width: 600px) { .library-panel .inline-control { flex-direction: column; align-items: stretch; } }

/* Shared LARP IPAs brand tokens and components. */
:root { color-scheme: dark; --font-mono: "Geist Mono", "SFMono-Regular", Consolas, monospace; }
body { font-size: 15px; }
::selection { background: var(--accent); color: #fff; }
.header-inner { min-height: 68px; gap: 24px; position: relative; }
.brand-mark { width: 28px; height: 28px; background: transparent; display: block; }
.brand-word { font: 760 15px/1 var(--font-mono); letter-spacing: .04em; }
.brand-word em { color: var(--accent); font-style: normal; }
.site-nav { gap: 28px; font-weight: 650; font-size: 13px; }
.site-nav a { padding: 24px 0 21px; }
.site-nav a:hover, .site-nav .is-current { border-bottom-color: var(--accent); }
.header-action, .button, input, select, .file-field, .drop-zone, .inline-panel, .notice { border-radius: 8px; }
.header-action { border-color: rgba(226,229,255,.17); color: var(--muted); }
.hero h1, .error-page h1 { font-weight: 720; font-size: clamp(40px, 6vw, 64px); line-height: 1.06; letter-spacing: -.045em; max-width: 800px; }
.hero-copy { font-size: 18px; max-width: 650px; }
.section-content h2, .result-section h2, .udid-action h2, .udid-steps h2 { font-weight: 680; font-size: clamp(27px, 3.8vw, 38px); line-height: 1.15; }
.advanced-toggle strong { font-weight: 680; font-size: 28px; }
.eyebrow, .section-kicker, .aside-label, .section-number { font-family: var(--font-mono); }
.button { font-size: 14px; font-weight: 720; border-color: rgba(226,229,255,.17); }
.button-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.button-primary:hover { background: #6d50de; border-color: #6d50de; }
.button-secondary { background: #000; }
.button-secondary:hover { border-color: var(--muted); background: #08070c; }
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.check-row input { accent-color: var(--accent); flex-shrink: 0; }
.progress-track span { background: var(--accent); }
.drop-zone { border-style: dashed; }
.drop-zone:hover, .drop-zone:focus-visible, .file-field:hover { border-color: var(--accent); }
.library-panel { border-color: rgba(93,63,211,.5); background: #08060e; }
.library-items .check-row { border-bottom: 1px solid var(--line); }
.library-items span, .ipa-row > div { min-width: 0; overflow-wrap: anywhere; }
.nav-toggle { display: none; width: 42px; height: 42px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 8px; background: #000; align-items: center; justify-content: center; flex-direction: column; gap: 6px; cursor: pointer; }
.nav-toggle span { width: 18px; height: 1px; background: var(--ink); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.udid-qr { width: 224px; height: 224px; border-radius: 12px; background: #fff; display: block; margin: 26px 0 16px; }
.udid-mobile-action { display: none; }
.udid-desktop-action { display: block; }
.is-apple-mobile .udid-mobile-action { display: block; }
.is-apple-mobile .udid-desktop-action { display: none; }
@media (max-width: 900px) {
 .nav-toggle { display: flex; }
 .site-nav.is-open { display: flex; position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: 12px 20px; flex-direction: column; align-items: stretch; gap: 0; background: #000; border: 1px solid var(--line); border-radius: 0 0 12px 12px; }
 .site-nav a { padding: 16px 0; }
}
@media (max-width: 680px) {
 .header-inner { gap: 12px; }
 .shell { width: calc(100% - 40px); }
 .hero { padding: 60px 0 42px; }
 .hero h1 { font-size: 42px; }
 .hero-copy { font-size: 16px; }
 .library-panel { padding: 18px; }
 .header-action { padding: 8px 10px; }
}

/* Compact library selector and centered device handoff. */
.udid-qr-block { width: min(100%, 340px); margin: 28px auto 0; text-align: center; }
.udid-qr-block .udid-qr { margin: 0 auto 16px; }
.udid-qr-block figcaption { margin: 0; line-height: 1.6; }
.library-dropdown { margin-bottom: 16px; border: 1px solid rgba(226,229,255,.17); border-radius: 8px; background: #000; overflow: hidden; }
.library-dropdown summary { min-height: 50px; padding: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; font-weight: 650; list-style: none; }
.library-dropdown summary::-webkit-details-marker { display: none; }
.library-dropdown summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.library-chevron { color: var(--muted); transition: transform .15s; }
.library-dropdown[open] .library-chevron { transform: rotate(180deg); }
.library-dropdown-content { border-top: 1px solid var(--line); padding: 14px; }
.library-dropdown .library-items { max-height: 310px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #5d3fd3 #100d19; margin: 12px -6px 8px; padding: 0 6px; }
.library-dropdown .library-items .check-row { display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 4px; min-height: 68px; }
.library-dropdown .check-row:hover { background: rgba(93,63,211,.12); }
.library-dropdown .check-row:has(input:checked) { background: rgba(93,63,211,.18); }
.library-dropdown .check-row.is-disabled { cursor: not-allowed; opacity: .28; filter: grayscale(1); }
.library-dropdown .check-row.is-disabled:hover { background: transparent; }
.library-dropdown .check-row.is-disabled input { cursor: not-allowed; }
.library-dropdown .check-row input { margin: 0; }
.library-app-icon { display: block; width: 40px; height: 40px; object-fit: cover; flex: 0 0 40px; border-radius: 9px; background: #111; }
.library-app-copy { display: grid; gap: 3px; min-width: 0; }
.library-app-copy strong { font-size: 14px; font-weight: 650; line-height: 1.3; }
.library-app-copy .ksign-recommended { display: inline; margin-left: 7px; color: #a993ff; font-size: 11px; font-weight: 720; white-space: nowrap; }
.library-items .library-app-copy small { font-size: 11px; color: var(--muted); opacity: 1; margin: 0; line-height: 1.4; }
#library-match-count { margin: 0; }
.ksign-tutorial { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 16px; padding: 16px; border: 1px solid rgba(93,63,211,.65); border-radius: 10px; background: linear-gradient(135deg, rgba(93,63,211,.25), rgba(8,6,14,.85)); }
.ksign-tutorial strong { display: block; font-size: 15px; }
.ksign-tutorial p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.ksign-tutorial .button { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 600px) { .ksign-tutorial { align-items: stretch; flex-direction: column; gap: 12px; } .ksign-tutorial .button { width: 100%; } }
.profile-bundle-warning { margin-top: 14px; padding: 12px; border: 1px solid rgba(93,63,211,.45); border-radius: 8px; background: rgba(93,63,211,.12); color: var(--muted); font-size: 12px; line-height: 1.5; }
.profile-bundle-warning code { color: var(--ink); overflow-wrap: anywhere; }
.profile-bundle-warning .text-action { display: block; margin-top: 8px; color: var(--ink); }

/* Keep taps immediate without blocking scrolling or pinch zoom. */
html { touch-action: manipulation; }
body, button, a, input, select, textarea, summary, label { touch-action: manipulation; }
.udid-value-row { display: flex; align-items: center; gap: 12px; }
.udid-value-row #device-udid { min-width: 0; overflow-wrap: anywhere; }
.udid-copy-icon { width: 44px; height: 44px; flex: 0 0 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid rgba(226,229,255,.17); border-radius: 8px; color: var(--muted); background: #08070c; cursor: pointer; }
.udid-copy-icon:hover { color: var(--ink); border-color: var(--accent); }
.udid-copy-icon.is-copied { color: var(--success); border-color: var(--success); }
#device-result-message { text-align: center; }
@media (max-width: 900px) { input, select, textarea { font-size: 16px; } }
