:root { --direct-blue: #175cff; --direct-violet: #6538ef; --direct-pink: #ff476f; --direct-lime: #caff26; --direct-ink: #10204d; }
.direct-main { overflow: clip; }
.direct-hero { min-height: 410px; margin-top: 8px; padding: 46px 52px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 42px; position: relative; overflow: hidden; border: 1px solid rgba(92,62,222,.18); border-radius: 32px; color: white; background: radial-gradient(circle at 75% 18%, rgba(255,87,145,.76), transparent 27%), radial-gradient(circle at 7% 100%, rgba(29,192,255,.45), transparent 38%), linear-gradient(130deg, #102772 0%, #3021a2 51%, #6f2bc1 100%); box-shadow: 0 26px 70px rgba(36,31,128,.24), inset 0 1px rgba(255,255,255,.22); }
.direct-hero::before { content: ""; width: 460px; height: 460px; position: absolute; right: -130px; bottom: -320px; border: 55px solid rgba(202,255,38,.18); border-radius: 50%; }
.direct-hero-copy { position: relative; z-index: 2; }
.direct-new-badge { width: max-content; padding: 7px 12px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; color: #1a2750; background: var(--direct-lime); box-shadow: 0 8px 20px rgba(12,14,72,.2); font-size: .76rem; font-weight: 800; }
.direct-new-badge svg { width: 15px; }
.direct-hero h1 { margin: 17px 0 0; font: 700 clamp(3.2rem,7vw,6.25rem)/.92 "Chakra Petch","Anuphan",sans-serif; letter-spacing: -.07em; text-shadow: 0 9px 28px rgba(4,12,57,.28); }
.direct-tagline { margin: 13px 0 0; font-size: clamp(1.1rem,2.2vw,1.6rem); font-weight: 700; }
.direct-tagline b { padding: 2px 8px; border-radius: 8px; color: var(--direct-ink); background: white; }
.direct-intro { max-width: 650px; margin: 16px 0 0; color: rgba(255,255,255,.82); line-height: 1.75; }
.direct-trust-row { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 9px; }
.direct-trust-row span { padding: 8px 10px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,.15); border-radius: 10px; background: rgba(7,16,66,.26); font-size: .72rem; font-weight: 600; backdrop-filter: blur(9px); }
.direct-trust-row svg { width: 15px; color: var(--direct-lime); }
.direct-hero-art { min-width: 0; position: relative; z-index: 1; }
.direct-hero-art img { width: 100%; aspect-ratio: 4 / 3; display: block; object-fit: cover; border: 1px solid rgba(255,255,255,.25); border-radius: 28px; transform: rotate(2.2deg); box-shadow: 0 24px 44px rgba(4,10,55,.4), inset 0 1px rgba(255,255,255,.35); }
.direct-art-pill { position: absolute; right: -12px; bottom: -12px; padding: 13px 18px; border: 5px solid #fff; border-radius: 17px; color: #101b49; background: var(--direct-lime); box-shadow: 0 12px 25px rgba(6,11,53,.28); font: 800 1.35rem/1 "Chakra Petch",sans-serif; transform: rotate(-6deg); }

.direct-workspace { margin-top: 34px; padding: 28px; border: 1px solid rgba(92,62,222,.16); border-radius: 28px; background: color-mix(in srgb, var(--surface) 96%, #eef0ff); box-shadow: 0 22px 55px rgba(21,33,77,.09); }
.direct-workspace-head { margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.direct-workspace-head h2 { margin: 3px 0 0; font-size: clamp(1.35rem,3vw,2rem); }
.direct-live-status { padding: 8px 11px; display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; color: var(--muted); background: rgba(112,124,157,.1); font-size: .72rem; }
.direct-live-status i { width: 9px; height: 9px; border-radius: 50%; background: #8a94ad; box-shadow: 0 0 0 4px rgba(138,148,173,.13); }
.direct-live-status[data-tone="waiting"] { color: #816000; background: #fff4c6; }
.direct-live-status[data-tone="waiting"] i { background: #f5b900; box-shadow: 0 0 0 4px rgba(245,185,0,.15); animation: direct-status-pulse 1.5s infinite; }
.direct-live-status[data-tone="connected"] { color: #087243; background: #dffbec; }
.direct-live-status[data-tone="connected"] i { background: #13b76a; box-shadow: 0 0 0 4px rgba(19,183,106,.15); animation: direct-status-pulse 1.5s infinite; }
.direct-live-status[data-tone="error"] { color: #a22a36; background: #ffe5e7; }
.direct-live-status[data-tone="error"] i { background: #e43b4d; }
@keyframes direct-status-pulse { 50% { box-shadow: 0 0 0 7px rgba(19,183,106,0); } }
.direct-panel { padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.direct-panel[hidden], .direct-alert[hidden], .direct-selected[hidden], .direct-incoming[hidden], .direct-progress-wrap[hidden], .direct-downloads[hidden], .direct-approval[hidden] { display: none !important; }
.direct-panel-title { margin-bottom: 22px; display: flex; align-items: center; gap: 14px; }
.direct-panel-title > span { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 14px; color: #fff; background: linear-gradient(145deg, var(--direct-blue), var(--direct-violet)); box-shadow: 0 9px 20px rgba(70,48,210,.22); font: 800 1rem/1 "Chakra Petch",sans-serif; }
.direct-panel-title svg { width: 21px; }
.direct-panel-title h3 { margin: 0; font-size: 1.08rem; }
.direct-panel-title p { margin: 3px 0 0; color: var(--muted); font-size: .8rem; }
.direct-dropzone { min-height: 230px; padding: 28px; display: grid; place-items: center; align-content: center; gap: 8px; position: relative; border: 2px dashed rgba(87,61,218,.3); border-radius: 20px; text-align: center; background: radial-gradient(circle at 50% 120%, rgba(202,255,38,.2), transparent 45%), linear-gradient(135deg, rgba(28,99,255,.055), rgba(121,62,235,.07)); cursor: pointer; transition: border-color .2s, transform .2s, background .2s; }
.direct-dropzone:hover, .direct-dropzone.dragging { border-color: var(--direct-violet); transform: translateY(-2px); background: linear-gradient(135deg, rgba(28,99,255,.1), rgba(121,62,235,.13)); }
.direct-dropzone input { position: absolute; opacity: 0; pointer-events: none; }
.direct-upload-mark { width: 68px; height: 68px; display: grid; place-items: center; border-radius: 22px; color: white; background: linear-gradient(145deg, var(--direct-blue), var(--direct-violet) 70%, var(--direct-pink)); box-shadow: 0 13px 28px rgba(72,48,212,.26), inset 0 1px rgba(255,255,255,.35); }
.direct-upload-mark svg { width: 31px; }
.direct-dropzone strong { font-size: 1.08rem; }
.direct-dropzone small { color: var(--muted); }
.direct-selected { margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; }
.direct-selected-head { display: flex; justify-content: space-between; gap: 12px; }
.direct-selected-head button { border: 0; color: var(--direct-blue); background: transparent; cursor: pointer; }
.direct-selected ul { max-height: 220px; margin: 12px 0 0; padding: 0; display: grid; gap: 7px; overflow: auto; list-style: none; }
.direct-selected li { padding: 10px 12px; display: flex; align-items: center; gap: 9px; border-radius: 10px; background: rgba(116,128,159,.08); font-size: .78rem; }
.direct-selected li svg { width: 17px; color: var(--direct-violet); }
.direct-selected li span { min-width: 0; margin-right: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.direct-selected li small { color: var(--muted); white-space: nowrap; }
.direct-inline-error { margin: 14px 0 0; padding: 11px 13px; border-radius: 10px; color: #a32135; background: #ffe7ea; font-size: .78rem; font-weight: 600; }
.direct-primary-button, .direct-secondary-button { min-height: 50px; padding: 12px 20px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 14px; font: 700 .86rem/1.2 "Anuphan",sans-serif; cursor: pointer; }
.direct-primary-button { margin-top: 18px; color: white; background: linear-gradient(120deg, var(--direct-blue), var(--direct-violet) 65%, var(--direct-pink)); box-shadow: 0 12px 25px rgba(73,49,213,.25); }
.direct-primary-button:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(73,49,213,.3); }
.direct-primary-button:disabled { cursor: not-allowed; filter: grayscale(.7); opacity: .48; transform: none; }
.direct-primary-button svg, .direct-secondary-button svg { width: 18px; }
.direct-secondary-button { margin-top: 18px; border: 1px solid var(--line); color: var(--muted); background: var(--surface); }

.direct-share-grid { display: grid; grid-template-columns: 230px 1fr; gap: 24px; align-items: center; }
.direct-qr-wrap { padding: 15px; display: grid; place-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 10px 28px rgba(21,33,77,.08); }
#shareQr { width: 180px; height: 180px; padding: 9px; background: white; }
#shareQr img, #shareQr canvas { width: 100% !important; height: 100% !important; display: block; }
.direct-qr-wrap small { color: #68738d; }
.direct-share-copy label, .direct-recipient-form label { display: block; margin-bottom: 7px; color: var(--muted); font-size: .74rem; font-weight: 700; }
.direct-link-field { display: grid; grid-template-columns: 1fr auto; border: 1px solid rgba(73,50,205,.28); border-radius: 14px; overflow: hidden; box-shadow: 0 5px 15px rgba(30,40,81,.06); }
.direct-link-field input { min-width: 0; padding: 13px 14px; border: 0; color: var(--ink); background: var(--surface); outline: none; }
.direct-link-field button { padding: 0 15px; display: flex; align-items: center; gap: 6px; border: 0; color: #fff; background: var(--direct-blue); cursor: pointer; }
.direct-link-field svg { width: 16px; }
.direct-share-actions { margin-top: 11px; display: flex; gap: 9px; }
.direct-share-actions button { min-height: 42px; padding: 9px 12px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: var(--surface); cursor: pointer; }
.direct-share-actions svg { width: 16px; }
.direct-wait-copy { margin: 18px 0 0; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .78rem; }
.direct-wait-copy span { width: 10px; height: 10px; border: 2px solid var(--direct-blue); border-radius: 50%; animation: direct-wait 1.4s infinite; }
@keyframes direct-wait { 50% { box-shadow: 0 0 0 7px rgba(23,92,255,0); } 0% { box-shadow: 0 0 0 0 rgba(23,92,255,.4); } }
.direct-approval { margin-top: 22px; padding: 18px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; border: 1px solid rgba(202,255,38,.65); border-radius: 18px; background: linear-gradient(105deg, rgba(202,255,38,.18), rgba(104,65,239,.08)); box-shadow: 0 10px 25px rgba(26,39,84,.08); }
.direct-approval-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 16px; color: white; background: linear-gradient(145deg, var(--direct-blue), var(--direct-violet)); }
.direct-approval-icon svg { width: 24px; }
.direct-approval p, .direct-approval h3 { margin: 0; }
.direct-approval p, .direct-approval small { color: var(--muted); font-size: .72rem; }
.direct-approval-actions { display: flex; gap: 8px; }
.direct-approval-actions button { min-height: 42px; padding: 9px 14px; border: 0; border-radius: 11px; font-weight: 700; cursor: pointer; }
.direct-approval-actions .reject { color: #a62334; background: #ffe5e8; }
.direct-approval-actions .approve { display: flex; align-items: center; gap: 5px; color: white; background: #15a963; }
.direct-approval-actions svg { width: 17px; }

.direct-recipient-form { max-width: 580px; margin: auto; }
.direct-recipient-form input { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: var(--surface); font: inherit; }
.direct-recipient-form .direct-primary-button { width: 100%; }
.direct-room-security { max-width: 580px; margin: 16px auto 0; padding: 13px; display: flex; align-items: center; gap: 10px; border-radius: 13px; color: #705100; background: #fff7d6; }
.direct-room-security svg { width: 20px; flex: 0 0 auto; }
.direct-room-security span { display: grid; font-size: .76rem; }
.direct-room-security small { opacity: .78; }
.direct-wait-panel { min-height: 320px; place-items: center; align-content: center; text-align: center; }
.direct-wait-panel:not([hidden]) { display: grid; }
.direct-wait-panel h3 { margin: 10px 0 4px; }
.direct-wait-panel > p:last-child { max-width: 550px; margin: 0; color: var(--muted); }
.direct-radar { width: 84px; height: 84px; display: grid; place-items: center; border-radius: 50%; color: white; background: linear-gradient(145deg, var(--direct-blue), var(--direct-violet)); box-shadow: 0 0 0 12px rgba(81,59,231,.08), 0 0 0 28px rgba(81,59,231,.045); animation: direct-radar 2s ease-in-out infinite; }
.direct-radar svg { width: 36px; }
@keyframes direct-radar { 50% { box-shadow: 0 0 0 20px rgba(81,59,231,.04), 0 0 0 42px rgba(81,59,231,0); } }
.direct-transfer-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.direct-transfer-top h3 { margin: 3px 0; }
.direct-transfer-top p:last-child { margin: 0; color: var(--muted); }
.direct-peer-route { display: flex; align-items: center; gap: 8px; color: var(--direct-violet); }
.direct-peer-route svg { width: 29px; height: 29px; }
.direct-peer-route b { width: 80px; height: 4px; border-radius: 99px; background: linear-gradient(90deg, var(--direct-blue), var(--direct-lime), var(--direct-pink)); background-size: 200% 100%; animation: direct-route 1.2s linear infinite; }
@keyframes direct-route { to { background-position: -200% 0; } }
.direct-incoming { margin-top: 20px; padding: 18px; border: 1px solid rgba(91,53,241,.18); border-radius: 16px; background: rgba(91,53,241,.05); }
.direct-incoming-list { display: grid; gap: 7px; }
.direct-incoming-list div { display: flex; justify-content: space-between; gap: 12px; font-size: .78rem; }
.direct-incoming-list span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.direct-incoming-list small { color: var(--muted); white-space: nowrap; }
.direct-incoming .direct-primary-button { width: 100%; }
.direct-storage-note { margin: 9px 0 0; color: var(--muted); font-size: .7rem; text-align: center; }
.direct-progress-wrap { margin-top: 24px; }
.direct-progress-meta, .direct-progress-detail { display: flex; justify-content: space-between; gap: 12px; }
.direct-progress-meta { font-size: .82rem; }
.direct-progress-detail { margin-top: 7px; color: var(--muted); font-size: .7rem; }
.direct-progress-track { height: 13px; margin-top: 10px; padding: 3px; border-radius: 99px; background: rgba(102,113,146,.14); overflow: hidden; }
.direct-progress-track i { width: 0%; height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, var(--direct-blue), var(--direct-violet), var(--direct-pink), var(--direct-lime)); background-size: 250% 100%; box-shadow: 0 0 16px rgba(91,53,241,.35); transition: width .18s linear; animation: direct-route 2s linear infinite; }
.direct-downloads { margin-top: 22px; padding: 18px; border-radius: 16px; background: #e7fff1; }
.direct-downloads h4 { margin: 0 0 10px; display: flex; align-items: center; gap: 7px; color: #087242; }
.direct-downloads h4 svg { width: 20px; }
.direct-downloads #downloadList { display: grid; gap: 8px; }
.direct-downloads a, .direct-downloads .saved-file { padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-radius: 10px; color: #0d5d3a; background: rgba(255,255,255,.8); font-size: .76rem; font-weight: 700; }
.direct-downloads a span { min-width: 0; overflow-wrap: anywhere; }
.direct-downloads a b { flex: 0 0 auto; color: var(--direct-blue); font-size: .76rem; }
.direct-downloads a { min-height: 48px; text-decoration: none; }
.direct-downloads .saved-file { overflow-wrap: anywhere; }
.direct-alert { margin-bottom: 16px; padding: 14px 16px; display: flex; gap: 11px; border: 1px solid #ffd06c; border-radius: 14px; color: #734f00; background: #fff5cf; }
.direct-alert svg { width: 22px; flex: 0 0 auto; }
.direct-alert p { margin: 2px 0 0; font-size: .76rem; }
.direct-prohibitions { margin-bottom: 18px; padding: 20px; border: 1px solid rgba(255,99,69,.38); border-radius: 20px; background: radial-gradient(circle at 100% 0, rgba(255,183,54,.18), transparent 30%), linear-gradient(135deg, rgba(255,71,93,.105), rgba(255,190,53,.09)); box-shadow: 0 12px 30px rgba(154,51,38,.08), inset 0 1px rgba(255,255,255,.7); }
.direct-prohibitions-head { display: flex; align-items: center; gap: 13px; }
.direct-prohibitions-head > span { width: 50px; height: 50px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 16px; color: #fff; background: linear-gradient(145deg, #ff4b55, #e02d76); box-shadow: 0 10px 21px rgba(205,38,71,.23), inset 0 1px rgba(255,255,255,.35); }
.direct-prohibitions-head > span svg { width: 25px; }
.direct-prohibitions-head h3 { margin: 1px 0 2px; font-size: 1.08rem; }
.direct-prohibitions-head p:last-child { margin: 0; color: var(--muted); font-size: .77rem; }
.direct-prohibition-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.direct-prohibition-grid > div { min-width: 0; padding: 12px; display: flex; align-items: flex-start; gap: 9px; border: 1px solid rgba(230,74,67,.15); border-radius: 13px; background: color-mix(in srgb, var(--surface) 87%, #fff4e8); }
.direct-prohibition-grid > div > svg { width: 19px; flex: 0 0 auto; color: #e13d4d; }
.direct-prohibition-grid span { min-width: 0; display: grid; gap: 2px; }
.direct-prohibition-grid b { font-size: .73rem; line-height: 1.45; }
.direct-prohibition-grid small { color: var(--muted); font-size: .65rem; line-height: 1.45; }
.direct-prohibition-foot { margin: 12px 0 0; padding-top: 11px; display: flex; align-items: center; gap: 7px; border-top: 1px dashed rgba(221,72,59,.25); color: #9d3038; font-size: .7rem; }
.direct-prohibition-foot svg { width: 17px; flex: 0 0 auto; }
.direct-prohibition-foot strong { margin-right: 2px; }
.direct-error-panel { align-items: center; gap: 18px; }
.direct-error-panel:not([hidden]) { display: flex; }
.direct-error-panel > span { width: 72px; height: 72px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 22px; color: white; background: linear-gradient(145deg, #fa4356, #a129a0); }
.direct-error-panel > span svg { width: 32px; }
.direct-error-panel h3 { margin: 4px 0; }
.direct-error-panel p:not(.section-kicker) { margin: 0; color: var(--muted); }

.direct-limits { margin-top: 42px; display: grid; grid-template-columns: .7fr 1.3fr; align-items: center; gap: 28px; }
.direct-limits h2 { margin: 3px 0 0; font-size: clamp(1.35rem,3vw,2rem); }
.direct-limit-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.direct-limit-grid article { min-height: 155px; padding: 18px; display: grid; align-content: center; gap: 6px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 10px 27px rgba(24,35,79,.07); }
.direct-limit-grid article:nth-child(1) { background: linear-gradient(150deg, rgba(28,99,255,.1), var(--surface) 55%); }
.direct-limit-grid article:nth-child(2) { background: linear-gradient(150deg, rgba(202,255,38,.17), var(--surface) 55%); }
.direct-limit-grid article:nth-child(3) { background: linear-gradient(150deg, rgba(255,71,111,.12), var(--surface) 55%); }
.direct-limit-grid svg { width: 28px; color: var(--direct-violet); }
.direct-limit-grid b { margin-top: 5px; }
.direct-limit-grid strong { color: var(--muted); font-size: .78rem; }
.direct-guide { margin-top: 46px; margin-bottom: 50px; }
.direct-guide .seo-steps { margin-top: 18px; }

/* Illustrated, role-specific instructions. Copy stays real text for mobile and English. */
.direct-howto { margin-bottom: 22px; border: 1px solid #d5e5eb; border-radius: 22px; overflow: hidden; background: var(--surface); }
.direct-howto[hidden], .direct-prohibitions[hidden], .direct-save-notice[hidden], #cancelTransfer[hidden] { display: none !important; }
.direct-howto > summary { min-height: 60px; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
.direct-howto > summary::-webkit-details-marker { display: none; }
.direct-howto > summary > span { display: flex; align-items: center; gap: 10px; line-height: 1.6; }
.direct-howto > summary svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--direct-blue); }
.direct-howto > summary small { color: var(--muted); flex: 0 0 auto; }
.direct-howto > summary small::after { content: " +"; font-size: 1rem; }
.direct-howto[open] > summary small::after { content: " −"; }
.direct-howto-grid { padding: 0 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.direct-role-guide { min-width: 0; border: 1px solid #d8e6f1; border-radius: 18px; overflow: hidden; background: var(--surface); }
.direct-role-guide[data-guide-role="receiver"] { border-color: #cbe7d8; }
.direct-guide-picture { position: relative; background: #edf7ff; }
.direct-guide-picture img { display: block; width: 100%; height: auto; aspect-ratio: 3/2; object-fit: contain; }
.direct-role-label { position: absolute; top: 12px; left: 12px; padding: 7px 14px; border-radius: 999px; background: #164bd6; color: #fff; font-size: .78rem; font-weight: 800; }
[data-guide-role="receiver"] .direct-role-label { background: #087343; }
.direct-guide-copy { padding: 20px; }
.direct-guide-copy h3 { margin: 0 0 18px; font-size: 1.06rem; line-height: 1.6; }
.direct-guide-copy ol { margin: 0; padding: 0; display: grid; gap: 19px; list-style: none; }
.direct-guide-copy li { display: flex; align-items: flex-start; gap: 11px; }
.direct-guide-copy li > b { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; flex: 0 0 auto; background: #eaf1ff; color: #1748bc; }
[data-guide-role="receiver"] .direct-guide-copy li > b { background: #e5f7eb; color: #086f3d; }
.direct-guide-copy strong { font-size: .84rem; line-height: 1.7; }
.direct-guide-copy p { margin: 5px 0 0; color: var(--muted); font-size: .77rem; line-height: 1.7; }
.direct-guide-reminder { margin: 18px 20px; display: flex; align-items: flex-start; gap: 9px; font-size: .79rem; line-height: 1.75; color: var(--muted); }
.direct-guide-reminder svg { width: 19px; height: 19px; flex: 0 0 auto; margin-top: 3px; color: #157447; }
body[data-direct-role="receiver"] [data-guide-role="receiver"] { box-shadow: 0 0 0 2px #31986a; }
.direct-live-status[data-tone="complete"] { color: #0a643d; background: #ddf5e6; }
.direct-live-status[data-tone="complete"] i { background: #168455; animation: none; box-shadow: none; }
.direct-success-panel { border-color: #c5e5d4; background: linear-gradient(145deg, #f4fcf7, #fff 65%); }
.direct-success-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 30px; align-items: center; }
.direct-success-image { display: block; width: 100%; height: auto; border-radius: 20px; }
.direct-success-copy { min-width: 0; }
.direct-success-badge { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 10px; color: #14623f; font-size: .8rem; font-weight: 700; line-height: 1.7; }
.direct-success-badge svg { width: 21px; height: 21px; flex: 0 0 auto; }
.direct-success-copy h3 { margin: 0 0 12px; color: #106438; font-size: clamp(1.65rem, 3.1vw, 2.55rem); line-height: 1.4; letter-spacing: normal; }
.direct-success-copy h3:focus { outline: none; }
#successMessage { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.85; }
.direct-success-stats { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 9px; }
.direct-success-stats span { padding: 7px 14px; border: 1px solid #d9e9df; border-radius: 10px; background: #fff; color: #185936; font-weight: 700; }
.direct-completed-connection { margin: 16px 0 0; color: #285d44; font-size: .78rem; line-height: 1.75; }
.direct-success-actions { margin-top: 24px; padding-top: 22px; border-top: 1px solid #dceadf; display: flex; gap: 12px; flex-wrap: wrap; }
.direct-success-actions .direct-primary-button { margin: 0; background: #127c4d; box-shadow: 0 7px 16px rgba(18,124,77,.14); }
.direct-success-actions .direct-secondary-button { margin: 0; text-decoration: none; }
.direct-save-notice { margin-top: 22px; padding: 15px 18px; border: 1px solid #bedecb; border-radius: 14px; background: #eaf8ee; color: #1b623c; font-size: .85rem; line-height: 1.8; }
.direct-save-notice[data-pending="true"] { background: #fff7e5; border-color: #efd090; color: #704800; }
.direct-main :is(button, a, summary):focus-visible { outline: 3px solid #175cff; outline-offset: 4px; }
body.dark .direct-role-guide, body.dark .direct-howto { background: #121a31; border-color: #334660; }
body.dark .direct-success-panel { background: #122b25; border-color: #315b49; }
body.dark .direct-success-copy h3, body.dark .direct-success-badge, body.dark .direct-completed-connection { color: #a4ecc4; }
body.dark .direct-success-copy #successMessage { color: #c6ddd3; }
@media (max-width: 760px) {
  .direct-howto-grid { grid-template-columns: 1fr; padding-inline: 12px; gap: 16px; }
  .direct-howto > summary { padding-inline: 14px; }
  .direct-howto > summary b { font-size: .9rem; }
  .direct-howto > summary small { font-size: .65rem; }
  .direct-guide-copy { padding: 18px; }
  .direct-success-layout { grid-template-columns: 1fr; gap: 20px; }
  .direct-success-image { max-width: 420px; margin: auto; }
  .direct-success-copy h3 { font-size: 1.8rem; }
  .direct-success-actions { flex-direction: column; }
  .direct-success-actions > * { width: 100%; }
  .direct-downloads a { align-items: flex-start; flex-direction: column; }
}

body.dark .direct-workspace, body.dark .direct-panel { background: #121a31; }
body.dark .direct-prohibitions { background: linear-gradient(135deg, rgba(201,42,66,.2), rgba(203,123,34,.13)); box-shadow: 0 12px 30px rgba(0,0,0,.16); }
body.dark .direct-prohibition-grid > div { background: rgba(16,24,45,.72); }
body.dark .featured-direct-card .tool-card-body { background: linear-gradient(135deg,#151d37,#10172b); }
body.dark .direct-link-field input, body.dark .direct-share-actions button, body.dark .direct-recipient-form input, body.dark .direct-secondary-button { color: var(--ink); background: #10182d; }
body.dark .direct-limit-grid article { background: linear-gradient(150deg, rgba(91,53,241,.18), #121a31 58%); }

@media (max-width: 1100px) {
  .direct-hero { padding: 38px; grid-template-columns: 1fr .85fr; }
  .direct-hero h1 { font-size: clamp(3.1rem,8vw,5.2rem); }
  .direct-limits { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .direct-hero { min-height: 0; padding: 28px 22px 24px; grid-template-columns: 1fr; gap: 24px; border-radius: 24px; }
  .direct-hero h1 { font-size: clamp(3.2rem,16vw,5.2rem); }
  .direct-hero-art { width: min(100%,520px); margin: auto; }
  .direct-trust-row { gap: 7px; }
  .direct-trust-row span { font-size: .66rem; }
  .direct-workspace { margin-top: 20px; padding: 16px; border-radius: 22px; }
  .direct-workspace-head { align-items: flex-start; flex-direction: column; }
  .direct-panel { padding: 19px; border-radius: 17px; }
  .direct-share-grid { grid-template-columns: 1fr; }
  .direct-qr-wrap { width: min(100%,250px); margin: auto; }
  .direct-approval { grid-template-columns: auto 1fr; }
  .direct-prohibition-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .direct-approval-actions { grid-column: 1/-1; }
  .direct-approval-actions button { flex: 1; justify-content: center; }
  .direct-transfer-top { align-items: flex-start; flex-direction: column; }
  .direct-limit-grid { grid-template-columns: 1fr; }
  .direct-limit-grid article { min-height: 112px; }
  .direct-error-panel:not([hidden]) { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 430px) {
  .direct-hero { padding-inline: 18px; }
  .direct-prohibitions { padding: 16px; }
  .direct-prohibitions-head { align-items: flex-start; }
  .direct-prohibition-grid { grid-template-columns: 1fr; }
  .direct-hero h1 { font-size: 3.55rem; }
  .direct-tagline { font-size: 1rem; }
  .direct-intro { font-size: .83rem; }
  .direct-trust-row span { width: 100%; }
  .direct-panel-title { align-items: flex-start; }
  .direct-panel-title p { line-height: 1.55; }
  .direct-dropzone { min-height: 205px; padding: 20px 14px; }
  .direct-link-field { grid-template-columns: 1fr 48px; }
  .direct-link-field button span { display: none; }
  .direct-share-actions { flex-direction: column; }
  .direct-share-actions button { justify-content: center; }
  .direct-peer-route b { width: 55px; }
}
@media (prefers-reduced-motion: reduce) {
  .direct-new-badge, .direct-radar, .direct-peer-route b, .direct-progress-track i, .direct-wait-copy span { animation: none !important; }
}
