:root { color-scheme: light; --ink:#222d26; --muted:#59645c; --line:#d8dcd1; --canvas:#f6f6ef; --paper:#fffef8; --rail:#e9ede0; --accent:#255742; --accent-tint:#d8e6d8; --focus:#2b7655; --error:#a13a38; font: 15px/1.5 -apple-system,BlinkMacSystemFont,"PingFang SC","Noto Sans CJK SC",sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: grid; grid-template-columns: 216px minmax(0, 1fr); background: var(--canvas); color: var(--ink); }
[hidden] { display: none !important; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.skip { position: fixed; top: -4rem; z-index: 4; padding: .5rem; background: var(--paper); }
.skip:focus { top: .5rem; left: .5rem; }
.sidebar { background: var(--rail); border-right: 1px solid var(--line); min-height: 100vh; display: flex; flex-direction: column; padding: 29px 15px 21px; position: sticky; top: 0; height: 100vh; overflow: auto; }
.brand { display: flex; gap: .7rem; align-items: center; color: var(--ink); font-weight: 690; line-height: 1.12; margin: 0 9px 34px; text-decoration: none; }
.logo { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 8px; background: var(--accent); color: white; font: 23px/1 Georgia,serif; }
.sidebar nav { display: grid; gap: 3px; }
.sidebar nav button { text-align: left; color: var(--muted); background: transparent; border-color: transparent; }
.sidebar nav button:hover { background: #e0e8da; color: var(--ink); }
.sidebar nav [aria-current] { color: var(--accent); background: var(--accent-tint); font-weight: 650; }
.sidebar-foot { margin-top: auto; padding-top: 1.25rem; }
.text-button { border: 0; background: none; color: var(--accent); }
main { width: 100%; max-width: 1500px; padding: 35px clamp(1.2rem, 4.3vw, 4.35rem) 4rem; overflow: clip; }
.breadcrumb { display: flex; gap: .65rem; color: var(--muted); font-size: .86rem; }
.hero { display: flex; gap: .9rem; align-items: end; justify-content: space-between; margin: 26px 0 29px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2rem, 4.2vw, 3.35rem); letter-spacing: -.065em; font-weight: 710; line-height: 1.12; }
.hero p { color: var(--muted); margin-top: .75rem; }
.filters { display: flex; flex-wrap: wrap; gap: .7rem; padding: 0 0 1.15rem; border-bottom: 1px solid var(--line); }
.search, .select { display: flex; align-items: center; gap: .55rem; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); padding: 0 .7rem; margin: 0; }
.search { flex: 1; min-width: 12rem; }
.select span { color: var(--muted); white-space: nowrap; }
.select select { min-width: 4.75rem; }
.search span { font-size: 1.4rem; }
.search input, .select select { border: 0; padding: .58rem .15rem; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: .65rem; margin: 1rem 0 .75rem; }
.section-heading h2 { font-size: .95rem; font-weight: 660; }
#count { color: var(--muted); font-size: .83rem; }
.asset-grid { display: grid; grid-template-columns: repeat(3,minmax(0, 1fr)); gap: .95rem; }
.asset { min-width: 0; border-radius: 11px; border: 1px solid var(--line); background: var(--paper); overflow: hidden; }
.asset:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.asset .cover { height: 133px; background: #e8ece1; overflow: hidden; display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.asset .cover iframe { width: 100%; height: 133px; border: 0; pointer-events: none; }
.asset .cover span { color: var(--accent); font: 30px Georgia,serif; }
.asset-content { padding: .8rem .9rem; }
.asset-line { display: flex; align-items: start; justify-content: space-between; gap: .5rem; }
.asset h3 { font-size: 1rem; }
.asset .asset-link { display: inline-block; padding: 0; text-align: left; background: none; border: 0; color: var(--ink); font-weight: 670; }
.asset .asset-link:hover { text-decoration: underline; }
.asset p { color: var(--muted); margin-top: .44rem; font-size: .83rem; }
.asset small { display: block; color: var(--muted); margin-top: .4rem; overflow-wrap: anywhere; }
.tag { background: #eaede4; color: #495448; border-radius: 4px; padding: .12rem .36rem; font-size: .72rem; flex-shrink: 0; }
.tag.approved { background: #dceadf; color: #215537; }
.tag.rejected { background: #f1e3df; color: #8c302d; }
.tag.experimental { background: #f5ead7; color: #78500d; }
.toolbar, .actions { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.actions { margin-top: .8rem; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(220px, 1fr); gap: 1rem; align-items: start; margin-top: .85rem; }
.detail-layout.compare { grid-template-columns: minmax(0,1fr); }
.panel { padding: .95rem; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; min-width: 0; overflow-wrap: anywhere; }
.panel h2 { font-size: 1.06rem; margin-bottom: .45rem; }
.panel h3 { font-size: .9rem; margin-top: .75rem; }
.panel p, .panel ul { margin: .35rem 0 .6rem; }
.panel ul { padding-left: 1.1rem; }
.compare-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; }
.frame-wrap { overflow: auto; padding: .3rem; background: #ebeee5; border: 1px solid var(--line); border-radius: 7px; }
.preview { display: block; width: 100%; height: 300px; border: 0; margin: auto; }
.preview.narrow { max-width: 360px; }
.detail-source { font-size: .86rem; color: var(--muted); }
.detail-source code { word-break: break-all; }
.muted, .empty { color: var(--muted); }
.empty { padding: 1.1rem 0; }
.error, .form-error { color: var(--error); }
.notification { margin-top: .8rem; background: #e3eee1; padding: .55rem .75rem; border-radius: 6px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; color: white; background: var(--accent); border: 1px solid var(--accent); border-radius: 7px; padding: .43rem .7rem; white-space: normal; }
button.quiet { background: var(--paper); border-color: var(--line); color: var(--ink); }
button:disabled { opacity: .55; cursor: default; }
label { display: grid; gap: .35rem; margin: .5rem 0; }
.toolbar label { margin: 0; }
input,textarea,select { min-width:0; width:100%; background: var(--paper); color: var(--ink); padding: .42rem .55rem; border: 1px solid var(--line); border-radius: 6px; }
textarea { resize: vertical; }
dialog { width: min(100% - 2rem, 34rem); max-height: 90vh; padding: 1.4rem; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); }
dialog::backdrop { background: #192e2485; }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
@media (max-width: 980px) { body { grid-template-columns: 178px minmax(0,1fr); } .asset-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .detail-layout { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 660px) { body { display: block; } .sidebar { position: static; height: auto; min-height: 0; padding: 10px 14px; border-bottom: 1px solid var(--line); border-right: 0; } .brand { margin: 0 0 .55rem; } .sidebar nav { display: flex; flex-wrap: wrap; } .sidebar-foot { padding-top: .35rem; } main { padding-top: 1rem; } .asset-grid, .compare-grid { grid-template-columns: minmax(0,1fr); } .hero { align-items: start; flex-wrap: wrap; } }

.asset .cover img, .source-image { display: block; width: 100%; max-height: 240px; object-fit: contain; }

.iris-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.iris-receipt p { color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 660px) { .iris-grid { grid-template-columns: minmax(0,1fr); } }

.connection-link { display: inline-block; margin: 0 .6rem .4rem; }
.connection-page { display: block; }
.connection-page main { max-width: 700px; margin: 0 auto; }
.connection-page h1 { margin: 1.25rem 0; }
.connection-page form > button { margin-top: .7rem; }
.connection-list { display: grid; gap: .8rem; }
