:root {
  color: #17251f;
  background: #f2f4ef;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(circle at 10% 0%, rgba(244, 167, 66, 0.12), transparent 34rem), #f2f4ef; }
button, input, select { font: inherit; }
button { cursor: pointer; }

.shell { width: min(1320px, 100%); margin: 0 auto; padding: 22px 28px 42px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand-logo { display: block; width: 128px; height: auto; filter: drop-shadow(0 4px 7px rgba(18, 56, 47, 0.08)); }
.brand-divider { width: 1px; height: 24px; background: #d7dfd9; }
.brand small { color: #718078; font-size: 8px; font-weight: 900; letter-spacing: 0.13em; white-space: nowrap; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.sync-state { display: inline-flex; align-items: center; gap: 7px; color: #607068; font-size: 11px; font-weight: 800; }
.sync-state i { width: 7px; height: 7px; border-radius: 50%; background: #38a778; box-shadow: 0 0 0 4px rgba(56, 167, 120, 0.13); }
.topbar button { min-height: 39px; border: 0; border-radius: 11px; padding: 0 14px; background: #17251f; color: #fff; font-size: 12px; font-weight: 900; }
.topbar button:disabled { opacity: 0.6; cursor: wait; }

.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 0.8fr); gap: 30px; overflow: hidden; border-radius: 25px; padding: 29px 32px; background: radial-gradient(circle at 89% 0%, rgba(245, 170, 69, 0.43), transparent 31%), linear-gradient(145deg, #102d23, #1a4234); color: #fff; box-shadow: 0 20px 42px rgba(20, 48, 38, 0.17); }
.hero::after { content: ""; position: absolute; right: -62px; bottom: -93px; width: 240px; height: 240px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; }
.hero-copy { position: relative; z-index: 1; }
.hero-copy > span, .catalog-header > div > span { color: #f9b559; font-size: 10px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.hero h1 { margin: 9px 0 8px; font-size: clamp(29px, 3.2vw, 43px); line-height: 1.02; letter-spacing: -0.048em; }
.hero p { max-width: 510px; margin: 0; color: rgba(255,255,255,.68); font-size: 14px; line-height: 1.5; }
.summary { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 9px; }
.summary article { min-height: 113px; border: 1px solid rgba(255,255,255,.12); border-radius: 17px; padding: 18px; background: rgba(255,255,255,.085); backdrop-filter: blur(12px); }
.summary strong, .summary span { display: block; }
.summary strong { color: #fff; font-size: 38px; line-height: 1; letter-spacing: -0.045em; }
.summary span { margin-top: 6px; color: rgba(255,255,255,.64); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }

.catalog-header { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 26px 2px 12px; }
.catalog-header > div > span { color: #a96a1c; }
.catalog-header h2 { margin: 4px 0 0; font-size: 22px; letter-spacing: -0.032em; }
.catalog-header p { margin: 0; color: #65736a; font-size: 12px; font-weight: 800; }
.toolbar { display: grid; grid-template-columns: minmax(0, 1fr) 205px; gap: 10px; }
.search-field { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: center; gap: 7px; min-height: 46px; border: 1px solid rgba(23,37,31,.12); border-radius: 13px; padding: 0 13px; background: #fff; color: #759087; }
.search-field > span { font-size: 25px; line-height: 1; transform: rotate(-20deg); }
.toolbar input, .toolbar select { width: 100%; min-height: 46px; border: 1px solid rgba(23,37,31,.12); border-radius: 13px; padding: 0 13px; background: #fff; color: #17251f; outline: none; }
.search-field input { min-height: auto; border: 0; padding: 0; }
.toolbar input:focus, .toolbar select:focus { border-color: #2e8062; box-shadow: 0 0 0 3px rgba(46,128,98,.12); }
.message { margin-top: 12px; border-radius: 13px; padding: 12px 14px; background: #fff8ed; color: #856025; font-size: 12px; font-weight: 800; }
.message:empty { display: none; }

.workspace { display: grid; grid-template-columns: minmax(310px, .95fr) minmax(410px, 1.05fr); gap: 17px; margin-top: 15px; align-items: start; }
.grid { display: grid; gap: 9px; max-height: calc(100vh - 316px); overflow-y: auto; padding: 1px 5px 4px 1px; }
.item-card { display: grid; grid-template-columns: 67px minmax(0, 1fr) 20px; align-items: center; gap: 12px; min-height: 102px; border: 1px solid rgba(23,37,31,.1); border-radius: 17px; padding: 10px; background: #fff; color: #17251f; text-align: left; box-shadow: 0 8px 22px rgba(29,45,36,.05); transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease; }
.item-card:hover, .item-card.selected { border-color: #5a9c80; box-shadow: 0 12px 26px rgba(29,45,36,.1); }
.item-card.selected { background: #f1f8f3; }
.item-card:active { transform: scale(.99); }
.item-photo { display: grid; width: 67px; height: 80px; place-items: center; overflow: hidden; border-radius: 13px; background: linear-gradient(145deg, #edf6f0, #d8e8de); }
.item-photo-image, .detail-photo-image { width: 100%; height: 100%; object-fit: cover; }
.empty-photo { color: #39735e; font-size: 25px; font-weight: 900; }
.item-copy { min-width: 0; }
.item-meta { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.item-meta > span { overflow: hidden; color: #9b641e; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.item-copy strong { display: block; margin-top: 6px; overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.item-copy small { display: block; margin-top: 4px; overflow: hidden; color: #6d7a72; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.status { display: inline-flex; flex: 0 0 auto; align-items: center; border-radius: 99px; padding: 5px 7px; background: #fff4df; color: #8f5100; font-size: 9px; font-style: normal; font-weight: 900; white-space: nowrap; }
.status.identified, .status.labeled, .status.ready, .status.published { background: #e4f4eb; color: #176343; }
.status.stored, .status.sold { background: #e8eefb; color: #284a84; }
.status.missing, .status.keep { background: #ece8df; color: #5f5140; }
.mini-progress, .detail-progress b { display: block; height: 4px; margin-top: 9px; overflow: hidden; border-radius: 99px; background: #e3ebe5; }
.mini-progress i, .detail-progress b i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2c8061, #71b398); }
.arrow { color: #91a198; font-size: 26px; font-weight: 300; }

.detail { position: sticky; top: 18px; min-height: 500px; border: 1px solid rgba(23,37,31,.1); border-radius: 22px; background: #fff; box-shadow: 0 15px 35px rgba(29,45,36,.08); }
.detail-empty { display: grid; min-height: 500px; place-items: center; align-content: center; gap: 7px; padding: 28px; color: #7d8982; text-align: center; }
.detail-empty > span { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 17px; background: #edf5ef; color: #39735e; font-size: 28px; }
.detail-empty strong { margin-top: 5px; color: #24352c; }
.detail-empty p { max-width: 190px; margin: 0; font-size: 12px; line-height: 1.45; }
.detail-card { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 18px; padding: 18px; }
.detail-photo { display: grid; width: 130px; height: 166px; place-items: center; overflow: hidden; border-radius: 18px; background: linear-gradient(145deg, #edf6f0, #d8e8de); }
.detail-title { align-self: center; min-width: 0; }
.category { display: inline-flex; border-radius: 99px; padding: 5px 8px; background: #fff0dd; color: #9b5b11; font-size: 9px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.detail-title h2 { margin: 9px 0 5px; font-size: 27px; line-height: 1.05; letter-spacing: -.04em; }
.detail-title p { margin: 0 0 10px; color: #68756d; font-size: 12px; }
.detail-progress, .notes, .tags, .qr-card, .review-list, .detail-card footer { grid-column: 1 / -1; }
.detail-progress { border-top: 1px solid #e7ece8; padding-top: 16px; }
.detail-progress div, .section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.detail-progress strong, .section-title strong { font-size: 12px; }
.detail-progress span, .section-title span { color: #69786f; font-size: 11px; font-weight: 800; }
.detail-progress b { margin-top: 9px; }
.notes { border-radius: 13px; padding: 12px; background: #f4f7f3; }
.notes strong { font-size: 11px; }
.notes p { margin: 5px 0 0; color: #647169; font-size: 12px; line-height: 1.48; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { border-radius: 99px; padding: 6px 8px; background: #edf6f0; color: #216850; font-size: 10px; font-weight: 900; }
.qr-card { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px; align-items: center; border-radius: 17px; padding: 14px; background: linear-gradient(145deg, #142d25, #0d211b); color: #fff; }
.qr-card img { width: 104px; aspect-ratio: 1; border: 4px solid #fff; border-radius: 12px; background: #fff; }
.qr-card span, .qr-card strong, .qr-card small { display: block; }
.qr-card span { color: #f9b559; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.qr-card strong { margin-top: 5px; font-size: 16px; }
.qr-card small { margin-top: 5px; color: rgba(255,255,255,.58); font-size: 10px; font-weight: 800; }
.qr-card a { display: inline-flex; margin-top: 12px; border-radius: 10px; padding: 9px 10px; background: #fff; color: #17392d; font-size: 10px; font-weight: 900; text-decoration: none; }
.review-list ul { display: grid; gap: 7px; margin: 10px 0 0; padding: 0; list-style: none; }
.review-list li { display: flex; align-items: center; gap: 8px; border: 1px solid #e0e7e2; border-radius: 10px; padding: 9px; color: #607067; font-size: 11px; font-weight: 750; }
.review-list li.done { border-color: #b9dbc7; background: #eff8f2; color: #216850; }
.review-list li i { display: grid; width: 17px; height: 17px; flex: 0 0 auto; place-items: center; border: 1px solid #cbd8d0; border-radius: 5px; color: #216850; font-size: 11px; font-style: normal; }
.review-list li.done i { border-color: #2e8062; background: #2e8062; color: #fff; }
.detail-card footer { border-top: 1px solid #e7ece8; padding-top: 13px; color: #8a958e; font-size: 10px; }

@media (max-width: 880px) { .hero { grid-template-columns: 1fr; } .summary { max-width: 540px; } .workspace { grid-template-columns: 1fr; } .grid { max-height: none; grid-template-columns: repeat(2, minmax(0, 1fr)); } .detail { position: static; } }
@media (max-width: 600px) { .shell { padding: 15px; } .topbar { align-items: flex-start; } .brand-logo { width: 110px; } .brand-divider, .brand small { display: none; } .sync-state { display: none; } .hero { padding: 24px 20px; } .hero h1 { font-size: 31px; } .summary { grid-template-columns: repeat(3, 1fr); } .summary article { min-height: 82px; padding: 13px; } .summary strong { font-size: 28px; } .summary span { font-size: 8px; } .toolbar { grid-template-columns: 1fr; } .grid { grid-template-columns: 1fr; } .detail-card { grid-template-columns: 92px minmax(0, 1fr); gap: 13px; padding: 14px; } .detail-photo { width: 92px; height: 118px; } .detail-title h2 { font-size: 22px; } .qr-card { grid-template-columns: 84px minmax(0, 1fr); } .qr-card img { width: 84px; } }
