/* ApproveIt — LMR Consultant. Warm editorial look from the original app:
   cream #F4F2EC, ink #17181C, brand orange #FF4A1C, Fraunces headlines. */
:root {
  --cream: #f4f2ec;
  --cream-2: #ece9df;
  --ink: #17181c;
  --ink-soft: #55524a;
  --orange: #ff4a1c;
  --orange-dark: #e03d12;
  --line: #ddd8c9;
  --card: #fffdf8;
  --green: #0e7a5f;
  --amber: #9a6b12;
  --red: #b3261e;
  --radius: 16px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
}
h1, h2, h3, .serif {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}
a { color: var(--orange); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px 64px; }

/* Header */
header.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; max-width: 1080px; margin: 0 auto;
}
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); }
.brand .mark {
  font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 26px;
}
.brand .mark em { font-style: normal; color: var(--orange); }
.brand small { color: var(--ink-soft); font-size: 13px; }
nav.top a { margin-left: 18px; color: var(--ink); text-decoration: none; font-size: 14px; }
nav.top a:hover { color: var(--orange); }

/* Hero */
.hero { text-align: center; padding: 56px 20px 28px; max-width: 720px; margin: 0 auto; }
.hero h1 { font-size: 46px; line-height: 1.05; margin: 0 0 14px; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero p { font-size: 18px; color: var(--ink-soft); margin: 0 0 26px; }
.hero .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none;
  background: var(--orange); color: #fff; font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: 999px;
}
.btn:hover { background: var(--orange-dark); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.small { padding: 8px 16px; font-size: 14px; }
.btn.danger { background: var(--red); }
.btn.danger:hover { background: #8f1d17; }
.btn.subtle { background: var(--cream-2); color: var(--ink); }
.btn.subtle:hover { background: #e0dccb; }

/* Cards & grids */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.card .body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.card h3 { margin: 0 0 6px; font-size: 20px; }
.card p.caption { margin: 0 0 10px; color: var(--ink-soft); font-size: 14.5px; flex: 1; }
.meta { font-size: 13px; color: var(--ink-soft); margin-bottom: 8px; }
.tags { font-size: 13px; color: var(--orange-dark); margin-bottom: 10px; word-break: break-word; }
.visual {
  aspect-ratio: 4 / 3; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; color: #fff; padding: 20px;
  background: var(--ink);
}
.visual .vlabel { font-family: "Fraunces", Georgia, serif; font-size: 26px; font-weight: 700; letter-spacing: .02em; }
.visual .vsub { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .9; margin-top: 6px; }
.visual img, .visual video { width: 100%; height: 100%; object-fit: cover; display: block; }
.visual.media { padding: 0; }
/* Review page: the client approves the real creative, so show the WHOLE image
   at its natural aspect ratio — never crop it. (A 4:5 portrait forced into the
   4/3 box above with object-fit: cover cut the headline off the top.) */
.review .visual.media { aspect-ratio: auto; overflow: visible; }
.review .visual.media img, .review .visual.media video { height: auto; object-fit: contain; }
.client-chip {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600;
}
.client-chip .dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }

/* Status pills */
.pill {
  display: inline-block; font-size: 12.5px; font-weight: 700; padding: 3px 11px;
  border-radius: 999px; text-transform: capitalize;
}
.pill.pending { background: #fdf0d5; color: var(--amber); }
.pill.approved { background: #dcf3e7; color: var(--green); }
.pill.changes { background: #fde3df; color: var(--red); }
.pill.scheduled { background: #e2e8fb; color: #2b4acb; }

/* Section headers / filters */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 34px 0 16px; }
.section-head h2 { margin: 0; font-size: 28px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 20px; }
.filters a {
  text-decoration: none; color: var(--ink); font-size: 14px; padding: 7px 14px;
  border-radius: 999px; border: 1.5px solid var(--line); background: var(--card);
}
.filters a.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Forms */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; max-width: 640px; margin: 24px auto; }
.form-card.wide { max-width: 780px; }
.form-card h2 { margin: 0 0 6px; font-size: 28px; }
.form-card .sub { color: var(--ink-soft); font-size: 14.5px; margin: 0 0 20px; }
label { display: block; font-weight: 600; font-size: 14px; margin: 16px 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=time],
select, textarea {
  width: 100%; padding: 11px 13px; font-size: 15px; border: 1.5px solid var(--line);
  border-radius: 10px; background: #fff; font-family: inherit; color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }
input[type=file] { font-size: 14px; }
.checks { display: flex; gap: 16px; flex-wrap: wrap; }
.checks label { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; margin: 0; }
.hint { font-size: 13px; color: var(--ink-soft); margin-top: 5px; }
.error { background: #fde3df; color: var(--red); border-radius: 10px; padding: 11px 14px; font-size: 14.5px; margin: 0 0 14px; }
.ok { background: #dcf3e7; color: var(--green); border-radius: 10px; padding: 11px 14px; font-size: 14.5px; margin: 0 0 14px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row.between { justify-content: space-between; }
.mt { margin-top: 18px; }

/* Tables */
table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; padding: 11px 14px; font-size: 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--cream-2); font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; }
tr:last-child td { border-bottom: 0; }
td .small { color: var(--ink-soft); font-size: 13px; }

/* Decision feed */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; margin-bottom: 10px; font-size: 14.5px; }
.feed li .when { color: var(--ink-soft); font-size: 13px; }
.feed blockquote { margin: 8px 0 0; padding-left: 12px; border-left: 3px solid var(--orange); color: var(--ink-soft); font-style: italic; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 20px 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat .num { font-family: "Fraunces", Georgia, serif; font-size: 32px; font-weight: 700; }
.stat .lbl { color: var(--ink-soft); font-size: 13.5px; }

/* Review page */
.review { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 820px) { .review { grid-template-columns: 1fr; } .hero h1 { font-size: 34px; } }
.review .visual { border-radius: var(--radius); aspect-ratio: 4 / 3; overflow: hidden; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }

/* Invite link box (admin dashboard) */
.invite { min-width: 260px; }
.invite input[type=text] { font-size: 12.5px; padding: 7px 9px; margin-bottom: 6px; }
.invite .hint { margin-top: 2px; }
footer.foot { text-align: center; color: var(--ink-soft); font-size: 13px; padding: 28px 0 10px; }
.empty { text-align: center; color: var(--ink-soft); padding: 40px 0; }
