/* Кейс «Веб-приложение для аукционов Японии»: элементы HTML-макетов экранов (демо-данные). */
.auc_chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.auc_chips span { padding: 7px 12px; border: 1px solid #2a2520; border-radius: 999px; font-size: 12px; color: #c8c0b3; background: #221d18; }
.auc_chips span b { font-weight: 500; color: #8c8378; margin-left: 4px; }
.auc_chips span._on { border-color: var(--accent); color: var(--fg); }
.auc_chips span._on b { color: var(--accent); }

.auc_lots { display: flex; flex-direction: column; gap: 8px; }
.auc_lot { display: grid; grid-template-columns: 72px 1.6fr 0.6fr 0.7fr 0.9fr; gap: 16px; align-items: center; padding: 10px 12px; background: #221d18; border: 1px solid #2a2520; border-radius: 8px; font-size: 13px; }
.auc_thumb { width: 72px; height: 48px; border-radius: 6px; background: linear-gradient(135deg, #3a322b 0%, #2a2520 55%, #4a3f35 100%); position: relative; overflow: hidden; }
.auc_thumb::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 22%; height: 34%; border-radius: 40% 40% 12% 12%; background: rgba(243,237,227,0.14); }
.auc_grade { color: var(--fg); font-weight: 500; }
.auc_km { color: #8c8378; }
.auc_price { color: var(--fg); font-weight: 500; text-align: right; }
.auc_price span { display: block; font-size: 10px; color: #8c8378; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; }

.auc_lotgrid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; margin-bottom: 20px; }
.auc_gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 1fr 56px; gap: 8px; min-height: 250px; }
.auc_gallery > div { border-radius: 8px; background: linear-gradient(135deg, #3a322b 0%, #2a2520 60%, #4a3f35 100%); border: 1px solid #2a2520; }
.auc_gallery > ._main { grid-column: 1 / -1; position: relative; }
.auc_gallery > ._main::after { content: "1 / 24"; position: absolute; right: 10px; bottom: 10px; font-size: 11px; color: #c8c0b3; background: rgba(26,20,16,0.7); padding: 3px 8px; border-radius: 999px; }
.auc_big { font-size: 44px; line-height: 1; color: var(--fg); font-weight: 500; letter-spacing: -0.03em; margin-bottom: 14px; white-space: nowrap; }
.auc_calc > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid #2a2520; font-size: 12.5px; color: #c8c0b3; }
.auc_calc b { color: var(--fg); font-weight: 500; white-space: nowrap; }

.auc_table { display: flex; flex-direction: column; margin-top: 16px; border-top: 1px solid #2a2520; }
.auc_tr { display: grid; grid-template-columns: 1fr 1.5fr 0.9fr 0.6fr 1fr; gap: 14px; align-items: center; padding: 11px 0; border-bottom: 1px solid #2a2520; font-size: 13px; color: #c8c0b3; }
.auc_tr._head { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: #8c8378; padding: 9px 0; }
.auc_tr .r_lname { font-size: 13px; }
.auc_st { justify-self: start; padding: 4px 10px; border-radius: 999px; font-size: 11px; border: 1px solid #3a322b; color: #c8c0b3; white-space: nowrap; }
.auc_st._new { border-color: rgba(199,138,71,0.5); color: #c78a47; }
.auc_st._bid { border-color: var(--accent); color: var(--accent); }
.auc_st._won { border-color: rgba(125,168,119,0.5); color: #7da877; }
.auc_st._lost { color: #8c8378; }

.auc_ledger { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.auc_ledger > div { display: grid; grid-template-columns: 100px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid #2a2520; font-size: 12.5px; color: #c8c0b3; }
.auc_ledger > div:last-child { border-bottom: 0; }
.auc_ledger b { font-weight: 500; color: var(--fg); white-space: nowrap; }
.auc_ledger ._plus b { color: #7da877; }
.auc_ledger ._void { color: #8c8378; }
.auc_ledger ._void b { color: #8c8378; text-decoration: line-through; }
.auc_ledger small { display: block; font-size: 11px; color: #8c8378; margin-top: 2px; }

.auc_toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.auc_toolbar span { padding: 6px 12px; border: 1px solid #2a2520; border-radius: 6px; font-size: 12px; color: #c8c0b3; background: #221d18; }
.auc_toolbar span._on { border-color: var(--accent); color: var(--fg); }
.auc_sheet_wrap { overflow-x: auto; border: 1px solid #2a2520; border-radius: 8px; }
.auc_sheet { display: grid; grid-template-columns: 36px 1.6fr 1fr 1fr 0.9fr 1fr 0.9fr; min-width: 640px; font-size: 12.5px; }
.auc_sheet > div { padding: 9px 10px; border-right: 1px solid #2a2520; border-bottom: 1px solid #2a2520; color: #c8c0b3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; }
.auc_sheet > div:nth-child(7n) { border-right: 0; }
.auc_sheet > ._h { background: #221d18; color: #8c8378; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.auc_sheet > ._n { color: #8c8378; text-align: center; background: #221d18; }
.auc_sheet > ._sel { outline: 2px solid var(--accent); outline-offset: -2px; color: var(--fg); overflow: visible; }
.auc_sheet > ._edited::after { content: ""; position: absolute; top: 0; right: 0; border-style: solid; border-width: 0 7px 7px 0; border-color: transparent var(--accent) transparent transparent; }
.auc_hist { margin-top: 14px; padding: 12px 14px; border: 1px solid #2a2520; border-left: 2px solid var(--accent); border-radius: 6px; font-size: 12.5px; color: #c8c0b3; background: #221d18; }
.auc_hist b { color: var(--fg); font-weight: 500; }

.auc_split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.auc_col_lbl { font-size: 10px; color: #8c8378; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; }
.auc_phone { max-width: 300px; margin: 0 auto; padding: 14px 12px 16px; border: 1px solid #3a322b; border-radius: 28px; background: #1a1410; }
.auc_phone_bar { display: flex; justify-content: space-between; align-items: center; padding: 2px 8px 12px; border-bottom: 1px solid #2a2520; margin-bottom: 12px; font-size: 12px; color: var(--fg); font-weight: 500; }
.auc_phone_bar span { font-size: 10px; color: #7da877; font-weight: 400; }
.auc_msgs { display: flex; flex-direction: column; gap: 8px; }
.auc_msg { max-width: 86%; padding: 8px 11px; border-radius: 12px; font-size: 12px; line-height: 1.4; color: #c8c0b3; background: #221d18; border: 1px solid #2a2520; }
.auc_msg._me { align-self: flex-end; background: rgba(217,119,87,0.14); border-color: rgba(217,119,87,0.35); color: var(--fg); }
.auc_msg._sys { align-self: center; max-width: 100%; background: transparent; border: 0; font-size: 10.5px; color: #8c8378; text-align: center; padding: 2px 0; }
.auc_msg small { display: block; font-size: 10px; color: #8c8378; margin-bottom: 3px; }
.auc_msg._file { display: flex; gap: 10px; align-items: center; }
.auc_msg._file i { flex: 0 0 34px; height: 34px; border-radius: 6px; background: linear-gradient(135deg, #3a322b, #4a3f35); }
.auc_push { padding: 14px 16px; border-radius: 14px; background: #221d18; border: 1px solid #3a322b; margin-bottom: 16px; }
.auc_push_top { display: flex; justify-content: space-between; font-size: 10.5px; color: #8c8378; margin-bottom: 6px; }
.auc_push b { display: block; font-size: 13px; color: var(--fg); font-weight: 500; margin-bottom: 3px; }
.auc_push p { font-size: 12.5px; color: #c8c0b3; margin: 0; line-height: 1.4; }
.auc_list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.auc_list li { font-size: 12.5px; color: #c8c0b3; padding-left: 14px; position: relative; line-height: 1.45; }
.auc_list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.auc_widget, .auc_tg { padding: 14px; border: 1px solid #2a2520; border-radius: 12px; background: #221d18; }
.auc_widget_head, .auc_tg_head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid #2a2520; font-size: 12.5px; font-weight: 500; color: var(--fg); }
.auc_widget_head span, .auc_tg_head span { font-size: 10.5px; font-weight: 400; color: #8c8378; }
.auc_widget .auc_msg, .auc_tg .auc_msg { background: #1c1815; }
.auc_quote { display: block; padding-left: 8px; border-left: 2px solid var(--accent); font-size: 11px; color: #8c8378; margin-bottom: 5px; }
.auc_ok { font-size: 10.5px; color: #7da877; margin-top: 4px; display: block; }

@media (max-width: 900px) {
  .auc_lot { grid-template-columns: 56px 1fr auto; gap: 10px; }
  .auc_thumb { width: 56px; height: 40px; }
  .auc_lot .auc_grade, .auc_lot .auc_km { display: none; }
  .auc_lotgrid, .auc_split { grid-template-columns: 1fr; }
  .auc_gallery { min-height: 180px; }
  .auc_tr { grid-template-columns: 1fr 1fr auto; }
  .auc_tr > :nth-child(3), .auc_tr > :nth-child(4) { display: none; }
  .auc_big { font-size: 34px; }
}
