:root { --red: #ED1C24; --dark: #1c1c1e; --bg: #f4f4f6; --line: #ddd; }
* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", Arial, sans-serif; background: var(--bg); color: var(--dark); }
main { max-width: 1200px; margin: 24px auto; padding: 0 16px; }
footer { text-align: center; color: #888; font-size: 12px; padding: 24px; }

.topbar { display: flex; justify-content: space-between; align-items: center;
  background: var(--dark); color: #fff; padding: 10px 20px; }
.brand { color: #fff; text-decoration: none; font-weight: 800; letter-spacing: 1px; }
.brand span { color: var(--red); font-weight: 600; letter-spacing: 0; }
.topbar nav { display: flex; align-items: center; gap: 14px; }
.whoami { color: #bbb; font-size: 14px; }
.logout { color: #bbb; font-size: 13px; }

.card { background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 24px; margin-bottom: 16px; }
.card.narrow { max-width: 720px; margin: 24px auto; }
.card.wide { max-width: 1200px; }
.card.center { text-align: center; }
.login-card { max-width: 420px; margin: 80px auto; text-align: center; }
.card-inset { background: #fafafa; border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin: 10px 0; }
.empty { text-align: center; color: #777; }

h1 { font-size: 22px; margin: 0 0 14px; }
.pill { background: var(--red); color: #fff; border-radius: 20px; font-size: 13px;
  padding: 3px 12px; vertical-align: middle; margin-left: 8px; }
.page-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }

.btn { display: inline-block; background: var(--red); color: #fff; border: none;
  border-radius: 8px; padding: 10px 18px; font-size: 15px; cursor: pointer;
  text-decoration: none; font-weight: 600; }
.btn:disabled { opacity: .5; cursor: wait; }
.btn-light { background: #fff; color: var(--dark); border: 1px solid var(--line); }
.btn-google { background: #fff; color: #444; border: 1px solid var(--line); width: 100%; }

label { display: block; margin: 14px 0 4px; font-weight: 600; font-size: 14px; }
input[type=text], input:not([type]), input[type=file] { width: 100%; padding: 9px 10px;
  border: 1px solid var(--line); border-radius: 6px; font-size: 15px; }
form .btn { margin-top: 18px; }

.alert { background: #fdecea; border: 1px solid #f5c6c3; color: #a12622;
  border-radius: 6px; padding: 10px 12px; margin: 10px 0; font-size: 14px; }
.warn { background: #fff8e1; border: 1px solid #ffe08a; border-radius: 6px;
  padding: 8px 10px; margin: 6px 0; font-size: 13px; }
.flagbox { background: #fff3f3; border: 1px solid #f3b6b6; border-radius: 6px;
  padding: 10px 12px; margin: 10px 0; font-size: 14px; }
.detected { background: #eef7ee; border: 1px solid #bcd9bc; border-radius: 6px;
  padding: 10px 12px; margin: 10px 0; font-size: 14px; }
.muted { color: #888; } .small { font-size: 12.5px; }

table.list { width: 100%; border-collapse: collapse; background: #fff;
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
table.list th, table.list td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #eee; font-size: 14px; }
table.list th { background: #fafafa; font-size: 12.5px; text-transform: uppercase; color: #777; }
.click-row { cursor: pointer; } .click-row:hover { background: #fdf5f5; }

.status { border-radius: 12px; padding: 2px 10px; font-size: 12.5px; font-weight: 600; }
.status-setup { background: #e8eefc; color: #274b9f; }
.status-transcribing, .status-processing { background: #fff3d6; color: #8a6200; }
.status-review { background: #ffe9c9; color: #9a5b00; }
.status-done { background: #e2f4e4; color: #1e6b2a; }
.status-error { background: #fdecea; color: #a12622; }

.progress-outer { background: #eee; border-radius: 10px; height: 18px; margin: 22px 0 10px; overflow: hidden; }
.progress-inner { background: var(--red); height: 100%; width: 0; transition: width .6s; }

.picker-list { list-style: none; margin: 8px 0 0; padding: 0; max-height: 260px; overflow-y: auto; }
.picker-list li { padding: 7px 10px; border-radius: 6px; cursor: pointer; font-size: 14px; }
.picker-list li:hover { background: #f2e6e6; }
.picker-list .use-folder { background: #e2f4e4; font-weight: 600; }
.picker-list .muted { cursor: default; }
.crumbs { font-size: 13px; } .crumbs a { color: var(--red); text-decoration: none; }
.picked { font-size: 14px; margin: 6px 0; }

.table-scroll { overflow-x: auto; margin: 10px 0; }
table.review { border-collapse: collapse; width: 100%; }
table.review th { background: var(--dark); color: #fff; font-size: 12px; padding: 7px 8px;
  position: sticky; top: 0; }
table.review td { border: 1px solid #e5e5e5; padding: 0; }
table.review td.chk { text-align: center; padding: 4px 10px; background: #fafafa; }
table.review input:not([type=checkbox]) { border: none; border-radius: 0; width: 100%;
  min-width: 110px; padding: 7px 8px; font-size: 13.5px; background: transparent; }
table.review input.num { min-width: 52px; width: 70px; }
table.review input.wide { min-width: 260px; }
table.review input.flag { background: #fff2a8; }  /* yellow = uncertain */
tr.crossed input { text-decoration: line-through; color: #999; }
tr.excluded { outline: 2px solid #e08787; } tr.excluded input { color: #a12622; }

.review-meta { font-size: 14px; color: #555; margin-bottom: 8px; }
.actions { margin-top: 14px; display: flex; gap: 12px; align-items: center; }
details pre { background: #f7f7f7; padding: 10px; overflow-x: auto; font-size: 12px; }
