/* ═══════════════════ Temp Mail · Signal ═══════════════════
   Scoped under .sg, loaded after signal.css: the start page, then the inbox. */
.sg [hidden] { display: none !important; }
.sg .tm-page a:focus-visible, .sg .tm-page button:focus-visible, .sg .tm-main a:focus-visible, .sg .tm-main button:focus-visible, .sg .tm-faq summary:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* ── Start page ──────────────────────────────────────────────────────── */
.sg .tm-hero { position: relative; padding: clamp(2.2rem,5vw,3.6rem) 0 .6rem; text-align: center; overflow: hidden; }
.sg .tm-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(55% 60% at 50% 0%, rgba(103,232,249,.12), transparent 70%); }
.sg .tm-hero > .sg-shell { position: relative; }
.sg .tm-hero-badge { display: inline-grid; place-items: center; width: 4rem; height: 4rem; border-radius: 1.1rem; margin-bottom: 1rem; background: rgba(103,232,249,.12); border: 1px solid rgba(103,232,249,.3); }
.sg .tm-hero-badge i { color: var(--cyan); font-size: 1.7rem; }
.sg .tm-title { font-weight: 800; letter-spacing: -.03em; font-size: clamp(2.2rem,6vw,3.8rem); margin: 0 0 .6rem; color: var(--cyan); }
.sg .tm-sub { color: var(--ink); font: 600 clamp(1.1rem,2vw,1.4rem)/1.3 var(--display); margin: 0 0 .5rem; }
.sg .tm-sub2 { color: var(--muted); max-width: 36rem; margin: 0 auto; line-height: 1.6; }
.sg .tm-main { padding: 1.6rem 0 2rem; }
.sg .tm-more { padding: 1rem 0 2.6rem; }
.sg .tm-card { border: 1px solid var(--line-2); background: var(--panel); border-radius: var(--r); padding: clamp(1.1rem,3vw,1.6rem); }
.sg .tm-card h3 { font-size: 1.1rem; line-height: 1.25; margin: 0 0 .8rem; } .sg .tm-card h3 i { color: var(--cyan); margin-right: .4rem; }
.sg .tm-card ul { list-style: none; margin: 0; padding: 0 0 0 1.05rem; color: var(--muted); font-size: .92rem; line-height: 1.75; }
.sg .tm-card li { position: relative; } .sg .tm-card li::before { content: ''; position: absolute; left: -1.05rem; top: .68em; width: .42rem; height: .42rem; border-radius: 50%; background: var(--cyan); }
.sg .tm-empty { color: var(--muted); line-height: 1.6; text-align: center; } .sg .tm-empty a, .sg .tm-hint a, .sg .tm-faq a { color: var(--green); }
.sg .tm-make label { display: block; font: 700 1rem/1.3 var(--display); margin-bottom: .7rem; }
.sg .tm-field { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: calc(var(--r) - 6px); background: rgba(255,255,255,.03); overflow: hidden; }
.sg .tm-field:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(103,232,249,.13); }
.sg .tm-field input { flex: 1 1 9rem; min-width: 0; padding: 1rem 1.1rem; background: none; border: 0; outline: none; color: var(--ink); font: 400 1.08rem/1.3 var(--body); }
.sg .tm-field input::placeholder, .sg .tm-label input::placeholder { color: var(--dim); }
.sg .tm-field .at { display: grid; place-items: center; color: var(--dim); font-weight: 600; }
.sg .tm-field select { flex: 0 1 auto; max-width: 55%; min-width: 0; padding: 1rem .9rem 1rem .5rem; background: none; border: 0; outline: none; color: var(--cyan); font: 600 1rem/1.3 var(--body); text-overflow: ellipsis; }
.sg .tm-field select option { background: var(--panel-2); color: var(--ink); }
@media (max-width: 480px) { .sg .tm-field { flex-wrap: wrap; } .sg .tm-field input { flex-basis: 100%; border-bottom: 1px solid var(--line); } .sg .tm-field .at { padding-left: 1.1rem; } .sg .tm-field select { max-width: none; flex: 1; } }
.sg .tm-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; } .sg .tm-actions .sg-btn { flex: 1 1 12rem; justify-content: center; }
.sg .tm-make .cf-turnstile { margin-top: 1rem; }
.sg .tm-hint { color: var(--muted); font-size: .85rem; line-height: 1.55; margin-top: .9rem; }
.sg .tm-error, .sg .tm-note { padding: .7rem .9rem; border-radius: .8rem; font-size: .9rem; line-height: 1.5; border: 1px solid var(--line-2); margin: .9rem 0 0; }
.sg .tm-error, .sg .tm-note.is-error { border-color: rgba(248,113,113,.4); background: rgba(248,113,113,.08); color: #fca5a5; }
.sg .tm-note { margin: 0 0 1rem; } .sg .tm-note.is-success { border-color: rgba(52,211,153,.4); background: rgba(52,211,153,.08); color: var(--green-2); }
.sg .tm-mine { margin-bottom: 1.3rem; } .sg .tm-mine h2 { font-size: 1.15rem; line-height: 1.3; margin: 0 0 .7rem; display: flex; justify-content: space-between; align-items: baseline; }
.sg .tm-mine h2 span { color: var(--dim); font: 500 .85rem/1 var(--body); }
.sg .tm-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .8rem; border: 1px solid var(--line); background: var(--panel); border-radius: calc(var(--r) - 4px); padding: .8rem 1rem; margin-bottom: .6rem; }
.sg .tm-row:hover { border-color: rgba(103,232,249,.4); }
.sg .tm-row-main { flex: 1 1 13rem; min-width: 0; text-decoration: none; } .sg .tm-row-main b { display: block; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; } .sg .tm-row-main span { color: var(--muted); font-size: .82rem; }
.sg .tm-row em, .sg .tm-others em { font: 600 .74rem/1 var(--body); padding: .35rem .6rem; border-radius: 999px; background: rgba(103,232,249,.14); color: var(--cyan); }
.sg .tm-open { padding: .65rem 1rem; font-size: .85rem; }
.sg .tm-icon { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: .7rem; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); color: var(--muted); cursor: pointer; flex: none; transition: color .2s, border-color .2s; }
.sg .tm-icon i { font-size: 1rem; } .sg .tm-icon:hover { color: var(--ink); border-color: rgba(103,232,249,.5); } .sg .tm-icon.is-done { color: var(--green); border-color: var(--green); }
.sg .tm-two { display: grid; gap: 1rem; margin-bottom: 1rem; } @media (min-width: 720px) { .sg .tm-two { grid-template-columns: 1fr 1fr; } }
.sg .tm-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(17rem,1fr)); }
.sg .tm-grid article { border: 1px solid var(--line); background: var(--panel); border-radius: var(--r); padding: 1.2rem; } .sg .tm-grid i { color: var(--cyan); }
.sg .tm-grid h3 { font-size: 1.05rem; line-height: 1.25; margin: .6rem 0 .4rem; } .sg .tm-grid p { color: var(--muted); font-size: .89rem; line-height: 1.6; }
.sg .tm-h2 { font-size: clamp(1.5rem,3vw,2rem); line-height: 1.15; text-align: center; margin: 0 0 1.3rem; } .sg .tm-h2 b { color: var(--cyan); }
.sg .tm-faq { display: flex; flex-direction: column; gap: .6rem; }
.sg .tm-faq details { border: 1px solid var(--line); border-radius: calc(var(--r) - 6px); background: var(--panel); }
.sg .tm-faq summary { padding: .95rem 1.1rem; cursor: pointer; font: 700 .98rem/1.4 var(--display); color: var(--ink); } .sg .tm-faq p { padding: 0 1.1rem 1.05rem; color: var(--muted); line-height: 1.65; font-size: .92rem; }

/* ── Inbox ───────────────────────────────────────────────────────────── */
.sg .tm-page { padding: clamp(1.4rem,3vw,2.2rem) 0 clamp(2.5rem,6vw,4rem); }
.sg .tm-back { display: inline-flex; align-items: center; gap: .5rem; color: var(--cyan); text-decoration: none; font-size: .9rem; margin-bottom: 1rem; } .sg .tm-back:hover { color: var(--ink); }
.sg .tm-head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.sg .tm-head-main { min-width: 0; }
.sg .tm-address { display: flex; align-items: center; gap: .6rem; font: 700 clamp(1.15rem,3vw,1.7rem)/1.25 var(--body); color: var(--ink); } .sg .tm-address span { overflow-wrap: anywhere; min-width: 0; }
.sg .tm-state { color: var(--muted); font-size: .88rem; margin-top: .4rem; } .sg .tm-state i { color: var(--cyan); margin-right: .25rem; } .sg .tm-state.is-soon, .sg .is-soon { color: var(--warm); }
.sg .tm-head-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; } .sg .tm-head-actions .sg-btn { padding: .75rem 1rem; font-size: .86rem; gap: .45rem; }
.sg .tm-label { display: flex; gap: .4rem; } .sg .tm-label input { width: 12rem; max-width: 46vw; padding: .7rem .9rem; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); color: var(--ink); font: 400 .88rem/1.2 var(--body); outline: none; } .sg .tm-label input:focus { border-color: var(--cyan); }
.sg .tm-inbox { display: grid; grid-template-columns: minmax(0,1fr); gap: 1rem; }
@media (min-width: 900px) { .sg .tm-inbox { grid-template-columns: minmax(17rem, 24rem) minmax(0,1fr); align-items: start; } .sg .tm-inbox:has(#tm-read[hidden]) { grid-template-columns: minmax(0,1fr); } }
.sg .tm-list, .sg .tm-read { border: 1px solid var(--line); background: var(--panel); border-radius: var(--r); min-width: 0; overflow: hidden; }
.sg .tm-list-head { display: flex; justify-content: space-between; align-items: baseline; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); } .sg .tm-list-head h1 { font-size: 1.15rem; line-height: 1.2; } .sg .tm-list-head span { color: var(--dim); font-size: .82rem; }
.sg #tm-lines { max-height: 72vh; overflow-y: auto; }
.sg .tm-line { display: block; width: 100%; text-align: left; padding: .85rem 1.2rem; background: none; border: 0; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; color: var(--muted); font: 400 .88rem/1.45 var(--body); cursor: pointer; }
.sg .tm-line:hover { background: rgba(255,255,255,.025); } .sg .tm-line[aria-current="true"] { background: rgba(103,232,249,.07); border-left-color: var(--cyan); }
.sg .tm-line .a { display: flex; justify-content: space-between; gap: .8rem; } .sg .tm-line .a b { color: var(--muted); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sg .tm-line .a time { flex: none; color: var(--dim); font-size: .78rem; }
.sg .tm-line .s { color: var(--ink); opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sg .tm-line .p { color: var(--dim); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg .tm-line.is-new .a b, .sg .tm-line.is-new .s { color: var(--ink); opacity: 1; font-weight: 600; } .sg .tm-line.is-new .a b::before { content: ''; display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--cyan); margin-right: .45rem; }
.sg .tm-line .t { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .3rem; } .sg .tm-line .t i { font: 600 .72rem/1 var(--mono); font-style: normal; padding: .28rem .5rem; border-radius: 999px; background: rgba(148,163,184,.12); color: var(--muted); } .sg .tm-line .t i.c { background: rgba(52,211,153,.13); color: var(--green); }
.sg .tm-waiting { text-align: center; padding: clamp(2.2rem,6vw,3.6rem) 1rem; } .sg .tm-waiting p { font: 700 1.1rem/1.3 var(--display); margin-top: 1rem; } .sg .tm-waiting span { color: var(--muted); font-size: .88rem; }
.sg .tm-pulse { display: inline-grid; place-items: center; width: 4.4rem; height: 4.4rem; border-radius: 50%; background: rgba(103,232,249,.1); position: relative; } .sg .tm-pulse i { color: var(--cyan); font-size: 1.6rem; }
.sg .tm-pulse::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(103,232,249,.45); animation: tm-pulse 2s ease-out infinite; } @keyframes tm-pulse { to { transform: scale(1.6); opacity: 0; } }
.sg .tm-read { padding: 1.2rem; scroll-margin-top: 5.5rem; } .sg .tm-read header { position: relative; padding-right: 3.2rem; margin-bottom: 1rem; } .sg .tm-read header .tm-icon { position: absolute; right: 0; top: 0; }
.sg .tm-read h2 { font: 700 clamp(1.15rem,2.4vw,1.45rem)/1.3 var(--body); letter-spacing: 0; overflow-wrap: anywhere; margin-bottom: .5rem; } .sg .tm-read header p { font-size: .87rem; line-height: 1.6; color: var(--muted); overflow-wrap: anywhere; } .sg .tm-from b { color: var(--ink); font-weight: 600; }
.sg .tm-read em { font-style: normal; font-size: .78rem; } #tm-verified { color: var(--green); white-space: nowrap; } #tm-tag { padding: .2rem .5rem; border-radius: 999px; background: rgba(148,163,184,.14); }
.sg .tm-close { display: none; align-items: center; gap: .5rem; background: none; border: 0; color: var(--cyan); font: 500 .9rem/1 var(--body); padding: 0 0 1rem; cursor: pointer; }
.sg .tm-code { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: .9rem 1.1rem; border: 1px solid rgba(52,211,153,.4); background: rgba(52,211,153,.07); border-radius: calc(var(--r) - 6px); margin-bottom: 1rem; } .sg .tm-code span { color: var(--muted); font-size: .85rem; } .sg .tm-code b { font: 700 1.6rem/1 var(--mono); letter-spacing: .08em; color: var(--green-2); flex: 1; } .sg .tm-code .sg-btn { padding: .7rem 1.1rem; font-size: .86rem; }
.sg .tm-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; padding: .7rem .9rem; border: 1px solid var(--line-2); border-radius: calc(var(--r) - 8px); margin-bottom: .9rem; color: var(--muted); font-size: .84rem; line-height: 1.45; } .sg .tm-bar span { flex: 1 1 16rem; } .sg .tm-bar .sg-btn { padding: .6rem .9rem; font-size: .82rem; }
.sg .tm-tabs { display: flex; gap: .4rem; margin-bottom: .8rem; } .sg .tm-tabs button { padding: .5rem .85rem; border-radius: 999px; border: 1px solid var(--line-2); background: none; color: var(--muted); font: 600 .8rem/1 var(--body); cursor: pointer; } .sg .tm-tabs button[aria-pressed="true"] { border-color: var(--cyan); color: var(--cyan); background: rgba(103,232,249,.1); }
.sg #tm-frame { display: block; width: 100%; height: 68vh; border: 0; border-radius: calc(var(--r) - 8px); background: #fff; }
.sg #tm-text { margin: 0; padding: 1rem; max-height: 68vh; overflow: auto; border-radius: calc(var(--r) - 8px); background: rgba(255,255,255,.03); color: var(--ink); font: 400 .92rem/1.65 var(--body); white-space: pre-wrap; overflow-wrap: anywhere; } .sg #tm-text a { color: var(--cyan); }
.sg .tm-files { margin-top: 1rem; } .sg .tm-files h3 { font-size: 1rem; line-height: 1.3; margin-bottom: .5rem; } .sg .tm-files ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.sg .tm-files li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; padding: .65rem .9rem; border: 1px solid var(--line); border-radius: .7rem; font-size: .86rem; } .sg .tm-files a { color: var(--cyan); overflow-wrap: anywhere; } .sg .tm-files span { color: var(--dim); overflow-wrap: anywhere; }
.sg .tm-others { margin-top: 1.4rem; } .sg .tm-others h2 { font-size: 1rem; line-height: 1.3; margin-bottom: .6rem; } .sg .tm-others a { display: inline-flex; align-items: center; gap: .5rem; margin: 0 .5rem .5rem 0; padding: .55rem .9rem; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: .85rem; overflow-wrap: anywhere; } .sg .tm-others a:hover { border-color: var(--cyan); }
@media (max-width: 899px) { .sg .tm-inbox.is-reading .tm-list { display: none; } .sg .tm-close { display: inline-flex; } .sg #tm-lines { max-height: none; } }
@media (prefers-reduced-motion: reduce) { .sg .tm-pulse::after { animation: none; } }
