/* Inkstone Archive additions on top of the shared Inkstone style.css (rosters family). */
:root { --team: #2f7a4a; --team-soft: #e6f3ea; --priv: #6b675f; --priv-soft: #efede8; --danger: #a8413a; }
.ic { vertical-align: -2px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; word-break: break-all; }
.h1 { font-family: Georgia, serif; font-weight: 400; font-size: 1.6rem; margin: .2rem 0 .6rem; }
.h2 { font-size: 1rem; margin: 1.4rem 0 .6rem; display: flex; gap: .8rem; align-items: baseline; }
.h2 a { font-weight: 400; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.2rem; margin-bottom: 1rem; }
.card h3 { font-size: .95rem; margin-bottom: .5rem; }
.ok { color: var(--team); font-weight: 600; }
.alert.red { background: #fbeaea; border-color: #efc4c0; }
.topsearch input { width: 15rem; padding: .35rem .6rem; }
.landing { display: flex; align-items: center; justify-content: center; min-height: 100vh; }

/* badges and status chips */
.badge { display: inline-flex; align-items: center; gap: .25rem; border-radius: 999px; padding: .08rem .55rem; font-size: .76rem; font-weight: 600; }
.badge.team { background: var(--team-soft); color: var(--team); }
.badge.priv { background: var(--priv-soft); color: var(--priv); border: 1px solid #d9d5cc; }
.badge.del { background: #fbeaea; color: var(--danger); }
.badge.warn { background: #fbf1e6; color: var(--warn); }
.st { font-size: .74rem; border-radius: 5px; padding: .05rem .45rem; border: 1px solid var(--line); color: var(--ink2); }
.st-done { border-color: #bcdcc6; color: var(--team); }
.st-failed { border-color: #efc4c0; color: var(--danger); }
.st-queued, .st-running { border-color: #e8d5b3; color: var(--warn); }
.btn.team { background: var(--team); border-color: var(--team); color: #fff; }
.btn.dangerbtn { background: var(--danger); border-color: var(--danger); color: #fff; }

/* home */
.homegrid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1.6rem; }
@media (max-width: 1000px) { .homegrid { grid-template-columns: 1fr; } }
.bigsearch { display: flex; gap: .5rem; margin-bottom: .6rem; }
.bigsearch input { flex: 1; font-size: 1.05rem; padding: .7rem .9rem; border-radius: 9px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .8rem; }
.ccard { padding: .5rem; color: var(--ink); display: flex; flex-direction: column; gap: .3rem; }
.ccard:hover { text-decoration: none; box-shadow: 0 2px 8px rgba(28,26,23,.08); }
.ccard img { width: 100%; height: 130px; object-fit: cover; object-position: top; border-radius: 6px; border: 1px solid var(--line2); }
.ccard .ct { font-weight: 600; font-size: .88rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.nothumb { display: flex; align-items: center; justify-content: center; background: #f4f2ed; color: var(--muted); font-size: .75rem; text-align: center; height: 100%; border-radius: 6px; }
.nothumb.big { height: 130px; flex-direction: column; gap: .3rem; }
.extcard ol.steps { padding-left: 1.2rem; display: flex; flex-direction: column; gap: .5rem; font-size: .9rem; }
.about p { font-size: .9rem; margin-bottom: .55rem; }
ul.bul { padding-left: 1.2rem; display: flex; flex-direction: column; gap: .35rem; }

/* list rows */
.crow { display: flex; gap: .9rem; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: .6rem; margin-bottom: .5rem; }
.crow.deleted { opacity: .8; border-style: dashed; }
.crow .thumb { flex: 0 0 150px; height: 90px; display: block; }
.crow .thumb img { width: 150px; height: 90px; object-fit: cover; object-position: top; border-radius: 6px; border: 1px solid var(--line2); }
.cmain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.ctitle { font-weight: 600; color: var(--ink); }
.curl { font-size: .8rem; color: var(--muted); }
.cmeta { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.snip { font-size: .84rem; color: var(--ink2); }
.tabs { display: flex; gap: .3rem; margin: .6rem 0; flex-wrap: wrap; }
.tab { padding: .35rem .8rem; border-radius: 6px; cursor: pointer; color: var(--ink2); font-size: .9rem; }
.tab.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.bulkbar { display: flex; gap: .5rem; align-items: center; margin: .5rem 0; }
.more { margin-top: 1rem; }

/* capture page */
.ctitle-big { word-break: break-word; }
.visrow { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.visnow { display: flex; gap: .6rem; align-items: center; font-size: .92rem; }
.dlrow, .statusrow { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; margin: .8rem 0; }
.shotframe { max-height: 80vh; overflow: auto; border: 1px solid var(--line2); border-radius: 6px; }
.shotframe img { width: 100%; display: block; }
.pdfframe, .htmlframe { width: 100%; height: 75vh; border: 1px solid var(--line2); border-radius: 6px; background: #fff; }
.textpane { white-space: pre-wrap; font-family: inherit; font-size: .88rem; max-height: 70vh; overflow: auto; background: #fbfaf7; padding: .8rem; border-radius: 6px; }
.refbox summary { cursor: pointer; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.refthumb { max-width: 360px; border: 1px solid var(--line2); border-radius: 6px; margin-top: .5rem; }
.danger { margin-top: 1.4rem; }
dialog { border: 1px solid var(--line); border-radius: 12px; padding: 1.2rem 1.4rem; max-width: 520px; margin: auto; }
dialog::backdrop { background: rgba(28,26,23,.35); }
dialog h3 { margin-bottom: .5rem; text-transform: none; letter-spacing: 0; font-size: 1.1rem; color: var(--ink); }
label.radio { display: block; margin: .35rem 0; font-size: .92rem; }
.hint { background: var(--team-soft); padding: .5rem .7rem; border-radius: 7px; font-size: .86rem; margin: .7rem 0; }
.dlgbtns { display: flex; justify-content: flex-end; gap: .5rem; margin-top: .8rem; }
table.grid td, table.grid th { padding: .35rem .5rem; border-bottom: 1px solid var(--line2); vertical-align: top; }

/* upload + connect */
.upform { display: flex; flex-direction: column; gap: .8rem; max-width: 760px; }
.fld { display: flex; flex-direction: column; gap: .25rem; font-size: .82rem; color: var(--muted); font-weight: 600; }
.visopts { border: 0; display: flex; flex-direction: column; gap: .5rem; }
.visopt { display: flex; gap: .5rem; align-items: center; border: 2px solid var(--line); border-radius: 9px; padding: .6rem .8rem; cursor: pointer; }
.visopt.team.on { border-color: var(--team); background: var(--team-soft); }
.visopt.priv.on { border-color: var(--priv); background: var(--priv-soft); }
.tokenbox { width: 100%; font-family: ui-monospace, Menlo, monospace; }
.cards3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.toast { position: fixed; bottom: 1.2rem; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 9px; font-size: .9rem; display: flex; gap: .6rem; align-items: center; z-index: 50; }
.toast[hidden] { display: none; }
.prose p, .prose li { font-size: .95rem; }
