/* ============================================================
   detail.css — third-level pages (event detail / 报名, tech item,
   post thread, auth). Direction A neumorphism. Loaded after pages.css.
   ============================================================ */

.dview { position: relative; z-index: 1; padding-top: 30px; }
/* beat `.ka a { color: inherit }` (0,1,1) for these anchor utilities */
.ka .back { color: var(--ink-soft); }
.ka .link-chip { color: var(--ink-soft); }
.back { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft); cursor: pointer; padding: 9px 16px 9px 13px; border-radius: 999px; margin-bottom: 28px; transition: color .2s, box-shadow .28s, transform .2s;
  box-shadow: calc(3px*var(--soft)) calc(3px*var(--soft)) calc(8px*var(--soft)) var(--d-sh), calc(-3px*var(--soft)) calc(-3px*var(--soft)) calc(8px*var(--soft)) var(--l-sh); }
.back:hover { color: var(--accent); transform: translateX(-2px); }
.back svg { width: 14px; height: 14px; transform: rotate(180deg); }

.dcols { display: grid; grid-template-columns: 1fr 360px; gap: 34px; align-items: start; }
.dmain { min-width: 0; }
.dside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 22px; }

/* detail header block */
.dhead { margin-bottom: 30px; }
.dhead .meta-row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.dhead h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px,3.4vw,40px); line-height: 1.2; letter-spacing: -.02em; margin: 0 0 18px; color: var(--ink); text-wrap: balance; }
.dhead .facts { display: flex; gap: 26px; flex-wrap: wrap; }
.dfact { display: flex; flex-direction: column; gap: 5px; }
.dfact .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.dfact .v { font-size: 15px; font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.dfact .v .pin { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* generic content panel */
.panel { border-radius: 24px; padding: 30px 32px; }
.panel + .panel { margin-top: 22px; }
.panel h2 { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin: 0 0 18px; color: var(--ink); }
.panel h2.with-rule { display: flex; align-items: center; gap: 14px; }
.panel h2.with-rule::after { content: ""; flex: 1; height: 1px; background: var(--hair); }
.panel p { font-size: 15px; line-height: 1.8; color: var(--ink-soft); margin: 0 0 14px; text-wrap: pretty; }
.panel p:last-child { margin-bottom: 0; }

/* agenda list */
.agenda { display: flex; flex-direction: column; gap: 2px; }
.agenda-row { display: grid; grid-template-columns: 88px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--hair); }
.agenda-row:last-child { border-bottom: none; }
.agenda-row .t { font-family: var(--font-mono); font-size: 13.5px; color: var(--accent); }
.agenda-row .c { font-size: 14.5px; color: var(--ink); font-weight: 500; }
.agenda-row .c span { display: block; font-weight: 400; font-size: 13px; color: var(--ink-soft); margin-top: 4px; }

/* speakers / people chips */
.people { display: flex; flex-wrap: wrap; gap: 14px; }
.person { display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 16px;
  box-shadow: inset calc(2px*var(--soft)) calc(2px*var(--soft)) calc(6px*var(--soft)) var(--d-sh), inset calc(-2px*var(--soft)) calc(-2px*var(--soft)) calc(6px*var(--soft)) var(--l-sh); }
.person .nm { font-size: 14px; font-weight: 600; color: var(--ink); }
.person .ro { font-size: 12px; color: var(--ink-faint); margin-top: 2px; }

/* tag list */
.taglist { display: flex; flex-wrap: wrap; gap: 9px; }
.taglist .ptag { font-family: var(--font-mono); font-size: 12px; color: var(--accent); padding: 6px 12px; border-radius: 999px;
  box-shadow: inset calc(2px*var(--soft)) calc(2px*var(--soft)) calc(5px*var(--soft)) var(--d-sh), inset calc(-2px*var(--soft)) calc(-2px*var(--soft)) calc(5px*var(--soft)) var(--l-sh); }

/* ---- forms (registration / auth) ---- */
.fld { margin-bottom: 16px; }
.fld > label { display: block; font-size: 13px; font-weight: 500; color: var(--ink-soft); margin-bottom: 9px; }
.input { width: 100%; border: none; outline: none; background: var(--bg); font-family: var(--font-sans); font-size: 15px; color: var(--ink); padding: 14px 16px; border-radius: 13px;
  box-shadow: inset calc(3px*var(--soft)) calc(3px*var(--soft)) calc(7px*var(--soft)) var(--d-sh), inset calc(-3px*var(--soft)) calc(-3px*var(--soft)) calc(7px*var(--soft)) var(--l-sh); }
.input::placeholder { color: var(--ink-faint); }
.input:focus { box-shadow: inset calc(3px*var(--soft)) calc(3px*var(--soft)) calc(7px*var(--soft)) var(--d-sh), inset calc(-3px*var(--soft)) calc(-3px*var(--soft)) calc(7px*var(--soft)) var(--l-sh), 0 0 0 2px var(--accent-glow); }
select.input { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%238b93a4' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.seg { display: flex; gap: 10px; flex-wrap: wrap; }
.seg .opt { font-size: 13.5px; font-weight: 500; color: var(--ink-soft); padding: 10px 16px; border-radius: 999px; cursor: pointer; transition: color .2s, box-shadow .25s;
  box-shadow: calc(2px*var(--soft)) calc(2px*var(--soft)) calc(6px*var(--soft)) var(--d-sh), calc(-2px*var(--soft)) calc(-2px*var(--soft)) calc(6px*var(--soft)) var(--l-sh); }
.seg .opt.on { color: var(--accent-ink); background: var(--accent); box-shadow: calc(2px*var(--soft)) calc(2px*var(--soft)) calc(7px*var(--soft)) var(--accent-glow); }
.btn-full { width: 100%; justify-content: center; }
.fld-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
textarea.input.ta { min-height: 110px; resize: vertical; line-height: 1.6; font-family: var(--font-sans); }
.form-slot { display: block; width: 100%; height: 180px; }
.tips { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.tips li { position: relative; padding-left: 20px; font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); }
.tips li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.reg-card h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin: 0 0 4px; color: var(--ink); }
.reg-card .price { font-family: var(--font-mono); font-size: 13px; color: var(--ink-faint); margin-bottom: 20px; }
.reg-meta { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--hair); }
.reg-meta .r { display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; }
.reg-meta .r .k { color: var(--ink-faint); font-family: var(--font-mono); font-size: 12px; }
.reg-meta .r .v { color: var(--ink); font-weight: 500; }

/* success state */
.done-card { text-align: center; padding: 16px 4px 6px; }
.done-card .check { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; color: var(--accent);
  box-shadow: calc(4px*var(--soft)) calc(4px*var(--soft)) calc(10px*var(--soft)) var(--d-sh), calc(-4px*var(--soft)) calc(-4px*var(--soft)) calc(10px*var(--soft)) var(--l-sh); }
.done-card .check svg { width: 28px; height: 28px; }
.done-card h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin: 0 0 10px; color: var(--ink); }
.done-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; margin: 0 0 22px; }

/* ---- tech item detail (run panel) ---- */
.item-hero { display: flex; align-items: flex-start; gap: 22px; margin-bottom: 26px; }
.item-hero .thumb-lg { width: 72px; height: 72px; border-radius: 20px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; color: #fff; }
.item-hero .ttl { flex: 1; min-width: 0; }
.item-hero h1 { font-family: var(--font-display); font-size: clamp(26px,3vw,36px); font-weight: 600; letter-spacing: -.02em; margin: 0 0 10px; color: var(--ink); line-height: 1.2; }
.item-hero .by { font-family: var(--font-mono); font-size: 13px; color: var(--ink-faint); display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.item-hero .by b { color: var(--ink-soft); font-weight: 500; }
.item-stats { display: flex; gap: 26px; margin: 4px 0 0; }
.item-stat { font-family: var(--font-mono); font-size: 13px; color: var(--ink-faint); display: inline-flex; align-items: center; gap: 7px; }
.item-stat svg { width: 14px; height: 14px; }
.item-stat b { color: var(--ink); font-weight: 600; }

/* link chips under title (HF / GitHub / arXiv) */
.link-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.link-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--ink-soft); padding: 8px 14px; border-radius: 999px; cursor: pointer; transition: color .2s, transform .2s, box-shadow .25s;
  box-shadow: calc(2px*var(--soft)) calc(2px*var(--soft)) calc(6px*var(--soft)) var(--d-sh), calc(-2px*var(--soft)) calc(-2px*var(--soft)) calc(6px*var(--soft)) var(--l-sh); }
.link-chip:hover { color: var(--accent); transform: translateY(-1px); }
.link-chip svg { width: 15px; height: 15px; }

/* detail tab bar */
.dtabs { display: flex; gap: 6px; padding: 6px; border-radius: 999px; margin-bottom: 26px; width: fit-content;
  box-shadow: inset calc(3px*var(--soft)) calc(3px*var(--soft)) calc(7px*var(--soft)) var(--d-sh), inset calc(-3px*var(--soft)) calc(-3px*var(--soft)) calc(7px*var(--soft)) var(--l-sh); }
.dtabs button { border: none; cursor: pointer; font-family: var(--font-sans); font-size: 14px; font-weight: 600; padding: 10px 24px; border-radius: 999px; background: transparent; color: var(--ink-soft); transition: color .2s, box-shadow .25s; }
.dtabs button.on { color: var(--accent); background: var(--bg);
  box-shadow: calc(3px*var(--soft)) calc(3px*var(--soft)) calc(8px*var(--soft)) var(--d-sh), calc(-3px*var(--soft)) calc(-3px*var(--soft)) calc(8px*var(--soft)) var(--l-sh); }

/* cover / media image slots */
.cover-slot { display: block; width: 100%; height: 300px; }
.media-slot { display: block; width: 100%; height: 240px; }
/* Card cover only appears once an image has been dropped (data-filled) */
.card-cover { display: block; width: 100%; height: 300px; margin-bottom: 22px; }
.card-cover:not([data-filled]) { display: none; }
.hf-emoji { font-size: 16px; line-height: 1; }

/* README (markdown, user-editable) */
.readme-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--hair); }
.readme-bar h2 { font-family: var(--font-mono); font-size: 15px; }
.readme-edit { font-size: 13px; font-weight: 600; color: var(--accent); cursor: pointer; }
.readme-hint { font-size: 13px; color: var(--ink-faint); font-style: italic; }

/* file list */
.filelist { display: flex; flex-direction: column; }
.frow { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 18px; padding: 14px 4px; border-bottom: 1px solid var(--hair); }
.frow:last-child { border-bottom: none; }
.frow .fn { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-mono); font-size: 14px; color: var(--ink); }
.frow .fn svg { width: 17px; height: 17px; color: var(--ink-faint); }
.frow .fs { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-soft); }
.frow .fd { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); white-space: nowrap; }

/* dropzone */
.dropzone { border-radius: 18px; padding: 40px 24px; text-align: center; color: var(--ink-faint); cursor: pointer; transition: color .2s, box-shadow .25s;
  box-shadow: inset calc(3px*var(--soft)) calc(3px*var(--soft)) calc(8px*var(--soft)) var(--d-sh), inset calc(-3px*var(--soft)) calc(-3px*var(--soft)) calc(8px*var(--soft)) var(--l-sh); }
.dropzone:hover { color: var(--accent); }
.dropzone .dz-t { font-size: 15px; font-weight: 600; color: var(--ink); margin: 12px 0 6px; }
.dropzone .dz-s { font-family: var(--font-mono); font-size: 12px; }

/* meta stats row */
.meta-stats { display: flex; gap: 22px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--hair); }

.run { }
.run .io { display: flex; flex-direction: column; gap: 14px; }
.run textarea { width: 100%; min-height: 110px; resize: vertical; border: none; outline: none; background: var(--bg); font-family: var(--font-sans); font-size: 14.5px; line-height: 1.6; color: var(--ink); padding: 16px; border-radius: 14px;
  box-shadow: inset calc(3px*var(--soft)) calc(3px*var(--soft)) calc(7px*var(--soft)) var(--d-sh), inset calc(-3px*var(--soft)) calc(-3px*var(--soft)) calc(7px*var(--soft)) var(--l-sh); }
.run textarea::placeholder { color: var(--ink-faint); }
.run .out { border-radius: 14px; padding: 18px; min-height: 80px; font-size: 14.5px; line-height: 1.7; color: var(--ink); white-space: pre-wrap;
  box-shadow: inset calc(3px*var(--soft)) calc(3px*var(--soft)) calc(7px*var(--soft)) var(--d-sh), inset calc(-3px*var(--soft)) calc(-3px*var(--soft)) calc(7px*var(--soft)) var(--l-sh); }
.run .out .ph { color: var(--ink-faint); }
.run .out .cursor { display: inline-block; width: 8px; height: 1.05em; background: var(--accent); vertical-align: -2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.run .runbar { display: flex; align-items: center; gap: 14px; }
.run .runbar .hint { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); margin-left: auto; }

.meta-card .mrow { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--hair); font-size: 13.5px; }
.meta-card .mrow:last-child { border-bottom: none; }
.meta-card .mrow .k { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); }
.meta-card .mrow .v { color: var(--ink); font-weight: 500; }

/* related list */
.rel { display: flex; flex-direction: column; gap: 4px; }
.rel a { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.rel a:last-child { border-bottom: none; }
.rel .sq { width: 36px; height: 36px; border-radius: 11px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; color: #fff; }
.rel .nm { font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rel .ty { font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); margin-top: 2px; }

/* ---- post thread ---- */
.thread-post .phead { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }
.thread-post .phead .n { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.thread-post .phead .h { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); }
.thread-post .phead .kind { margin-left: auto; font-family: var(--font-mono); font-size: 11px; padding: 6px 12px; border-radius: 999px; color: var(--accent);
  box-shadow: inset calc(2px*var(--soft)) calc(2px*var(--soft)) calc(5px*var(--soft)) var(--d-sh), inset calc(-2px*var(--soft)) calc(-2px*var(--soft)) calc(5px*var(--soft)) var(--l-sh); }
.thread-post h1 { font-family: var(--font-display); font-size: clamp(24px,3vw,32px); font-weight: 600; line-height: 1.3; margin: 0 0 18px; color: var(--ink); }
.thread-post .body { font-size: 15.5px; line-height: 1.85; color: var(--ink-soft); margin: 0 0 22px; }
.thread-post .pfoot { display: flex; align-items: center; gap: 10px; padding-top: 20px; border-top: 1px solid var(--hair); }
.thread-post .pfoot .met { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-family: var(--font-mono); font-size: 13px; color: var(--ink-faint); padding: 9px 15px; border-radius: 999px; transition: color .2s, box-shadow .25s; }
.thread-post .pfoot .met:hover { color: var(--accent); box-shadow: inset calc(2px*var(--soft)) calc(2px*var(--soft)) calc(5px*var(--soft)) var(--d-sh), inset calc(-2px*var(--soft)) calc(-2px*var(--soft)) calc(5px*var(--soft)) var(--l-sh); }
.thread-post .pfoot .met.share { margin-left: auto; }
.thread-post .pfoot .met svg { width: 15px; height: 15px; }

.comments h2 { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin: 0 0 20px; color: var(--ink); }
.cmt { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--hair); }
.cmt:last-child { border-bottom: none; }
.cmt .cbody { flex: 1; min-width: 0; }
.cmt .chead { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.cmt .chead .n { font-size: 14px; font-weight: 600; color: var(--ink); }
.cmt .chead .t { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-faint); }
.cmt .ctext { font-size: 14.5px; line-height: 1.7; color: var(--ink-soft); }
.cmt .clike { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); margin-top: 9px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.cmt .clike:hover { color: var(--accent); }
.cmt .clike svg { width: 13px; height: 13px; }

.reply { display: flex; gap: 14px; align-items: flex-start; }
.reply .field { flex: 1; }

/* ---- auth ---- */
.auth-stage { min-height: calc(100vh - 220px); display: flex; align-items: center; justify-content: center; padding: 40px 0 70px; position: relative; z-index: 1; }
.auth-card { width: 100%; max-width: 440px; border-radius: 28px; padding: 40px; }
.auth-card .brand { display: flex; justify-content: center; margin-bottom: 10px; }
.auth-head { text-align: center; margin-bottom: 28px; }
.auth-head h1 { font-family: var(--font-display); font-size: 25px; font-weight: 600; margin: 14px 0 8px; color: var(--ink); }
.auth-head p { font-size: 14px; color: var(--ink-soft); margin: 0; }
.auth-tabs { display: flex; gap: 6px; padding: 6px; border-radius: 999px; margin-bottom: 26px;
  box-shadow: inset calc(3px*var(--soft)) calc(3px*var(--soft)) calc(7px*var(--soft)) var(--d-sh), inset calc(-3px*var(--soft)) calc(-3px*var(--soft)) calc(7px*var(--soft)) var(--l-sh); }
.auth-tabs button { flex: 1; border: none; cursor: pointer; font-family: var(--font-sans); font-size: 14.5px; font-weight: 600; padding: 11px; border-radius: 999px; background: transparent; color: var(--ink-soft); transition: color .2s, box-shadow .25s; }
.auth-tabs button.on { color: var(--accent); background: var(--bg);
  box-shadow: calc(3px*var(--soft)) calc(3px*var(--soft)) calc(8px*var(--soft)) var(--d-sh), calc(-3px*var(--soft)) calc(-3px*var(--soft)) calc(8px*var(--soft)) var(--l-sh); }
.auth-foot { text-align: center; margin-top: 22px; font-size: 13px; color: var(--ink-faint); }
.auth-foot a { color: var(--accent); font-weight: 600; cursor: pointer; }
.oauth { display: flex; gap: 12px; margin-top: 18px; }
.oauth .ob { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px; border-radius: 13px; font-size: 13.5px; font-weight: 500; color: var(--ink-soft); cursor: pointer; transition: color .2s, transform .2s;
  box-shadow: calc(3px*var(--soft)) calc(3px*var(--soft)) calc(8px*var(--soft)) var(--d-sh), calc(-3px*var(--soft)) calc(-3px*var(--soft)) calc(8px*var(--soft)) var(--l-sh); }
.oauth .ob:hover { color: var(--ink); transform: translateY(-1px); }
.oauth .ob svg { width: 17px; height: 17px; }
.divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); letter-spacing: .1em; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--hair); }
.agree { display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; margin-bottom: 20px; cursor: pointer; }
.agree .box { width: 18px; height: 18px; border-radius: 6px; flex: 0 0 auto; margin-top: 1px; display: flex; align-items: center; justify-content: center; color: var(--accent-ink); transition: background .2s;
  box-shadow: inset calc(2px*var(--soft)) calc(2px*var(--soft)) calc(4px*var(--soft)) var(--d-sh), inset calc(-2px*var(--soft)) calc(-2px*var(--soft)) calc(4px*var(--soft)) var(--l-sh); }
.agree .box.on { background: var(--accent); box-shadow: none; }
.agree .box svg { width: 12px; height: 12px; opacity: 0; }
.agree .box.on svg { opacity: 1; }
.agree a { color: var(--accent); }

@media (max-width: 940px) {
  .dcols { grid-template-columns: 1fr; }
  .dside { position: static; }
}
@media (max-width: 620px) {
  .panel { padding: 24px 22px; }
  .auth-card { padding: 30px 22px; }
  .item-hero { gap: 16px; }
  .item-hero .thumb-lg { width: 58px; height: 58px; }
}
