/* Tennessee Theatre Lost & Found (2026-10-13). Shared staff-app identity:
   burgundy #7A222E, gold #B8963E, cream #FAF3E9, teal #086665, orange #FF8200;
   Georgia headings, system-ui body, no web fonts. Phone first. */
:root {
	--burg: #7A222E; --burg-d: #5c1922; --gold: #B8963E; --cream: #FAF3E9; --teal: #086665; --orange: #FF8200;
	--ink: #2a1f1c; --muted: #6f6359; --line: #e3d6c3; --card: #fff; --danger: #a4161a;
	--r: 12px; --shadow: 0 1px 3px rgba(60, 30, 20, .12);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.lf { margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--burg); }
h1, h2, h3, .lf-h1, .lf-h2 { font-family: Georgia, "Times New Roman", serif; color: var(--burg); line-height: 1.2; }
.lf-h1 { font-size: 1.6rem; margin: .2em 0 .6em; }
.lf-h2 { font-size: 1.25rem; margin: 1.4em 0 .6em; }
.lf-muted { color: var(--muted); font-size: .92em; }
.lf-hint { color: var(--muted); font-size: .85em; font-weight: normal; }
.lf-req { color: var(--danger); }
.lf-center { text-align: center; }
.lf-empty { background: var(--card); border: 1px dashed var(--line); border-radius: var(--r); padding: 1.5em; text-align: center; color: var(--muted); }

/* Header */
.lf-header { background: var(--burg); color: #fff; position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 6px rgba(0,0,0,.2); padding-top: env(safe-area-inset-top); }
.lf-header-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px 6px; max-width: 1100px; margin: 0 auto; }
.lf-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; min-width: 0; }
.lf-logo { width: 40px; height: 40px; border-radius: 9px; object-fit: contain; background: var(--burg-d); display: block; flex: none; }
.lf-app-name { font-family: Georgia, serif; font-size: 1.2rem; white-space: nowrap; }
.lf-user { display: flex; gap: 12px; align-items: center; font-size: .85rem; }
.lf-user span { opacity: .85; max-width: 9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lf-user a { color: #fff; }
.lf-nav { display: flex; gap: 4px; padding: 0 12px 8px; max-width: 1100px; margin: 0 auto; overflow-x: auto; }
.lf-nav a { color: #fff; text-decoration: none; padding: 7px 14px; border-radius: 999px; font-size: .95rem; white-space: nowrap; }
.lf-nav a.on { background: rgba(255,255,255,.18); }
.lf-nav a.lf-nav-log { background: var(--gold); color: #fff; font-weight: 600; margin-left: auto; }
.lf-nav a.lf-nav-log.on { background: #a0812f; }

.lf-main { max-width: 1100px; margin: 0 auto; padding: 16px 16px 40px; }
.lf-footer { text-align: center; color: var(--muted); font-size: .8rem; padding: 20px 16px 40px; }

/* Flash */
.lf-flash { border-radius: var(--r); padding: 12px 14px; margin-bottom: 14px; background: #e6f2f1; border: 1px solid #b6d8d5; color: #064d4c; }
.lf-flash-err { background: #fbe9e9; border-color: #efc0c0; color: #7d1416; }
.lf-inline { display: inline; margin-left: 8px; }

/* Buttons */
.lf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 16px; border: 1px solid var(--line); background: #fff; color: var(--burg); border-radius: 10px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.lf-btn:hover { border-color: var(--burg); }
.lf-btn-primary { background: var(--burg); border-color: var(--burg); color: #fff; }
.lf-btn-primary:hover { background: var(--burg-d); }
.lf-btn-teal { background: var(--teal); border-color: var(--teal); color: #fff; }
.lf-btn-ghost { background: transparent; border-color: transparent; text-decoration: underline; font-weight: 500; }
.lf-btn-small { min-height: 34px; padding: 5px 12px; font-size: .88rem; }
.lf-btn-xl { min-height: 56px; font-size: 1.15rem; padding: 12px 22px; }
.lf-btn-block { display: flex; width: 100%; }
.lf-btn[disabled] { opacity: .6; cursor: wait; }
.lf-link-danger { background: none; border: 0; color: var(--danger); text-decoration: underline; font: inherit; cursor: pointer; padding: 8px 0; }

/* Home */
.lf-hero { display: grid; gap: 12px; margin-bottom: 16px; }
.lf-hero .lf-btn-xl { width: 100%; }
.lf-quicksearch { display: flex; gap: 8px; }
.lf-quicksearch input { flex: 1; }
.lf-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.lf-stat { background: var(--card); border-radius: var(--r); padding: 12px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); border-top: 4px solid var(--teal); }
.lf-stat b { display: block; font-size: 1.7rem; font-family: Georgia, serif; color: var(--burg); }
.lf-stat span { font-size: .82rem; color: var(--muted); }
.lf-stat-warn { border-top-color: var(--orange); }
.lf-card { background: var(--card); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); margin-bottom: 16px; }
.lf-card h2 { margin: 0 0 .5em; font-size: 1.15rem; }
.lf-show-now { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; border-left: 5px solid var(--gold); }
.lf-show-now h2 { margin: .1em 0; }
.lf-show-now-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.lf-eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; color: var(--gold); font-weight: 700; }

/* Item grid */
.lf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.lf-tile { display: flex; flex-direction: column; background: var(--card); border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.lf-tile:hover { outline: 2px solid var(--gold); }
.lf-tile-img { position: relative; aspect-ratio: 1 / 1; background: #efe5d6; display: flex; align-items: center; justify-content: center; }
.lf-tile-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lf-tile-img .lf-pill { position: absolute; left: 6px; bottom: 6px; }
.lf-tile-body { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 10px; font-size: .9rem; }
.lf-tile-body strong { line-height: 1.25; }
.lf-tile-show { font-size: .78rem; color: var(--muted); }
.lf-tile.lf-st-returned, .lf-tile.lf-st-donated, .lf-tile.lf-st-discarded { opacity: .78; }
.lf-trashed { opacity: .5; }
.lf-noimg { color: var(--muted); font-size: .85rem; }
.lf-num { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .78rem; color: var(--gold); font-weight: 700; letter-spacing: .04em; }
.lf-num-big { font-size: 1.05rem; }

/* Pills */
.lf-pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; color: #fff; background: var(--teal); white-space: nowrap; }
.lf-pill-lg { font-size: .9rem; padding: 6px 12px; }
.lf-pill-waiting { background: var(--teal); }
.lf-pill-overdue { background: var(--orange); }
.lf-pill-returned { background: var(--gold); }
.lf-pill-donated, .lf-pill-discarded { background: #7d726a; }

/* Forms */
.lf-form, .lf-filters { display: grid; gap: 14px; }
.lf-form { max-width: 640px; }
label { display: grid; gap: 5px; font-weight: 600; font-size: .95rem; }
input[type=text], input[type=search], input[type=password], input[type=date], input[type=time], input[type=datetime-local], input[type=number], select, textarea {
	width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.lf-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lf-check { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; }
.lf-check input { width: 20px; height: 20px; margin-top: 2px; }
fieldset { border: 1px solid var(--line); border-radius: var(--r); padding: 12px; margin: 0; background: #fff; }
legend { font-weight: 700; color: var(--burg); padding: 0 6px; }
.lf-camera { display: block; position: relative; }
.lf-camera input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.lf-camera .lf-btn { border-style: dashed; border-width: 2px; min-height: 64px; font-size: 1.05rem; }
.lf-photo-preview, .lf-photo-edit { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.lf-prev { position: relative; }
.lf-prev img, .lf-photo-existing img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; display: block; }
.lf-prev-x { position: absolute; top: -8px; right: -8px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--burg); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.lf-photo-existing { display: grid; gap: 4px; font-weight: 500; font-size: .8rem; }
.lf-photo-existing span { display: flex; gap: 4px; align-items: center; }
.lf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lf-chip { display: inline-block; border: 1px solid var(--line); background: #fff; color: var(--teal); border-radius: 999px; padding: 4px 10px; font-size: .82rem; text-decoration: none; cursor: pointer; font-family: inherit; }
.lf-chip.on { background: var(--teal); color: #fff; border-color: var(--teal); }
.lf-form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.lf-form-actions .lf-btn-primary { flex: 1; }

/* Search */
.lf-filters { background: var(--card); border-radius: var(--r); padding: 14px; box-shadow: var(--shadow); grid-template-columns: repeat(2, 1fr); margin-bottom: 14px; }
.lf-filters .lf-f-q, .lf-filter-actions { grid-column: 1 / -1; }
.lf-filter-actions { display: flex; gap: 10px; }
.lf-results-bar { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 12px; }
.lf-pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 18px; }
.lf-pager a, .lf-pager span { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: #fff; text-decoration: none; border: 1px solid var(--line); }
.lf-pager .on { background: var(--burg); color: #fff; border-color: var(--burg); }

/* Item page */
.lf-item-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.lf-item-head .lf-h1 { margin-top: 0; }
.lf-item-layout { display: grid; gap: 18px; }
.lf-gallery-main img { width: 100%; max-height: 70vh; object-fit: contain; background: #1f1715; border-radius: var(--r); display: block; }
.lf-gallery-thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.lf-gallery-thumbs img { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; display: block; }
.lf-noimg-big { background: #efe5d6; border-radius: var(--r); aspect-ratio: 4 / 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.lf-facts { display: grid; grid-template-columns: 7.5em 1fr; gap: 8px 12px; margin: 0 0 12px; background: var(--card); padding: 14px; border-radius: var(--r); box-shadow: var(--shadow); }
.lf-facts dt { color: var(--muted); font-size: .88rem; }
.lf-facts dd { margin: 0; }
.lf-desc { background: var(--card); padding: 12px 14px; border-radius: var(--r); margin-bottom: 12px; box-shadow: var(--shadow); white-space: normal; }
.lf-actions-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.lf-close-card { border-top: 4px solid var(--teal); }
.lf-close-card form { display: grid; gap: 10px; }
.lf-closed-card { border-top: 4px solid var(--gold); }
.lf-dispose { margin-top: 12px; }
.lf-dispose summary, .lf-history summary, .lf-add-show summary { cursor: pointer; color: var(--burg); font-weight: 600; padding: 6px 0; }
.lf-dispose form { margin-top: 8px; }
.lf-history { background: var(--card); border-radius: var(--r); padding: 8px 14px; margin-bottom: 10px; box-shadow: var(--shadow); }
.lf-history ul { margin: 6px 0 8px; padding-left: 18px; font-size: .9rem; }
.lf-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 100; display: flex; align-items: center; justify-content: center; }
.lf-lightbox img { max-width: 100%; max-height: 100%; }
.lf-lightbox button { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; font-size: 28px; background: rgba(255,255,255,.2); color: #fff; }

/* Shows */
.lf-month { font-size: 1.05rem; margin: 1.2em 0 .5em; color: var(--muted); font-family: Georgia, serif; }
.lf-show-row { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: var(--r); padding: 10px 12px; margin-bottom: 8px; box-shadow: var(--shadow); }
.lf-show-row.lf-today { outline: 2px solid var(--gold); }
.lf-show-row.lf-removed { opacity: .6; }
.lf-show-date { width: 46px; text-align: center; flex: none; }
.lf-show-date b { display: block; font-size: 1.35rem; font-family: Georgia, serif; color: var(--burg); line-height: 1; }
.lf-show-date span { font-size: .72rem; color: var(--muted); text-transform: uppercase; }
.lf-show-info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.lf-show-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.lf-add-show { margin-top: 20px; }
.lf-add-show form { display: grid; gap: 10px; margin-top: 10px; }

/* Login card — same as Wristbands/Magnets/Portal (v1.0.1). System fonts. */
html:has(body.up-gate-body) { background: var(--burg); }
body.up-gate-body { margin: 0; background: var(--burg); min-height: 100vh; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); }
.up-gate-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px 16px; box-sizing: border-box; }
.up-gate-card { width: 100%; max-width: 360px; background: var(--cream); border-radius: 20px; padding: 40px 28px; box-sizing: border-box; box-shadow: 0 20px 40px rgba(0,0,0,.25); display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.up-gate-logo { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; }
.up-gate-title { font-family: Georgia, serif; font-size: 22px; font-weight: 700; color: var(--ink); }
.up-gate-sub { font-size: 12px; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); margin-top: -12px; }
.up-gate-icon { width: 44px; height: 44px; border-radius: 50%; background: #F0E0C8; display: flex; align-items: center; justify-content: center; color: var(--burg); }
.up-gate-welcome { font-family: Georgia, serif; font-size: 25px; font-weight: 700; color: var(--ink); margin: 0; }
.up-gate-error { color: var(--burg); font-size: 13.5px; margin: -8px 0 0; font-weight: 600; }
.up-gate-card form { width: 100%; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.up-label { font-size: 12px; font-weight: 700; color: #6B4A4F; text-transform: uppercase; letter-spacing: .4px; margin-bottom: -8px; display: block; }
.up-input { font: inherit; font-size: 16px; padding: 13px 14px; border-radius: 10px; border: 1.5px solid #E0CBAE; background: #fff; color: var(--ink); box-sizing: border-box; width: 100%; }
.up-gate-card .btn { padding: 13px 20px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; font-weight: 600; font-size: 15px; font-family: inherit; text-transform: uppercase; letter-spacing: .02em; }
.up-gate-card .btn-primary { background: var(--burg); color: #fff; }
.up-gate-card .up-button { width: 100%; margin-top: 4px; }
.up-gate-forgot, .up-gate-link { font-size: 13px; font-weight: 600; margin-top: -4px; color: var(--burg); text-decoration: none; }
.up-gate-help { font-size: 12.5px; color: var(--muted); margin: 0; }

/* Printable tag */
body.lf-tag-page { background: #fff; padding: 16px; }
.lf-tag-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.lf-tag { width: 4in; max-width: 100%; min-height: 3in; border: 2px dashed #999; padding: .18in; font-family: system-ui, sans-serif; color: #000; }
.lf-tag-top { display: flex; justify-content: space-between; gap: 10px; }
.lf-tag-head { font-size: 9pt; letter-spacing: .06em; font-weight: 700; }
.lf-tag-num { font: 700 30pt/1.05 ui-monospace, Menlo, Consolas, monospace; margin-top: 4px; }
.lf-tag-qr { width: 0.95in; height: 0.95in; flex: none; }
.lf-tag-qr svg { width: 100%; height: 100%; }
.lf-tag-title { font-size: 13pt; font-weight: 700; margin: 6px 0; }
.lf-tag-facts { font-size: 9.5pt; border-collapse: collapse; width: 100%; }
.lf-tag-facts th { text-align: left; padding: 1px 8px 1px 0; width: 3.6em; vertical-align: top; }
.lf-tag-facts td { padding: 1px 0; }
@media print {
	.no-print { display: none !important; }
	.lf-tag-page { padding: 0; }
	.lf-tag { border: 0; }
	@page { size: 4in 3in; margin: 0; }
}

/* Wider screens */
@media (min-width: 760px) {
	.lf-hero { grid-template-columns: auto 1fr; align-items: center; }
	.lf-hero .lf-btn-xl { width: auto; }
	.lf-filters { grid-template-columns: repeat(4, 1fr); }
	.lf-item-layout { grid-template-columns: 1fr 1fr; align-items: start; }
	.lf-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
}
@media (max-width: 420px) {
	.lf-user span { display: none; }
	.lf-stats { gap: 6px; }
	.lf-stat { padding: 10px 8px; }
	.lf-stat b { font-size: 1.4rem; }
	.lf-row2 { grid-template-columns: 1fr; }
	.lf-show-row { flex-wrap: wrap; }
	.lf-show-actions { width: 100%; justify-content: flex-start; padding-left: 58px; }
}
