/* Eclipse360 Proposals: the staff app. Orbit's look, Orbit's tokens. */

:root {
  --bg: #F5F2EC; --card: #FFFFFF; --card-soft: #F8F4EE; --card-border: #ECE5DA; --line: #E4DDD2;
  --text: #1A1817; --body: #4A4640; --muted: #6B6760;
  --accent: #C94F1A; --accent-ink: #B4461A;
  --ok: #2F6B45; --warn: #7A4E0F; --danger: #B42318;
  --shadow-sm: 0 1px 2px rgba(26, 24, 23, .05);
  --shadow-md: 0 1px 2px rgba(26, 24, 23, .05), 0 8px 24px rgba(26, 24, 23, .05);
  --shadow-lg: 0 12px 32px rgba(26, 24, 23, .08);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 15px; overflow-x: hidden; }
body { min-height: 100vh; background: radial-gradient(1200px 520px at 85% -10%, rgba(201, 79, 26, .10), rgba(201, 79, 26, 0) 70%), var(--bg); background-repeat: no-repeat; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; margin: 0; letter-spacing: -.3px; }
h1 em, h2 em { color: var(--accent); }
a { color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* Wordmark and top bar */
.wordmark { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--text); }
.wordmark-name { font-family: var(--serif); font-size: 32px; font-weight: 700; letter-spacing: -.5px; line-height: 1; }
.wordmark-by { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.by-logo { height: 15px; width: auto; align-self: center; transform: translateY(2px); }
.topbar { max-width: 1440px; margin: 0 auto; padding: 24px 40px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; }
.topbar-nav { display: flex; gap: 4px; padding: 6px; background: rgba(255, 255, 255, .72); border-radius: 999px; box-shadow: var(--shadow-sm); }
.nav-link { color: var(--body); text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 16px; border-radius: 999px; }
.nav-link:hover { color: var(--text); background: rgba(26, 24, 23, .05); }
.nav-link.active { background: var(--text); color: #fff; }
.topbar-right { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.page { max-width: 1440px; margin: 0 auto; padding: 28px 40px 80px; }

/* Buttons and fields */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 11px 20px; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; background: var(--text); color: #fff; white-space: nowrap; }
.btn:hover { background: #3A3633; color: #fff; }
.btn.accent { background: var(--accent); }
.btn.accent:hover { background: #A9421A; }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { background: rgba(26, 24, 23, .05); }
.btn.danger { background: transparent; color: var(--danger); box-shadow: inset 0 0 0 1px #F0C9C4; }
.btn.small { padding: 7px 14px; font-size: 13px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.icon-btn { border: 0; background: transparent; width: 30px; height: 30px; border-radius: 999px; cursor: pointer; color: var(--muted); display: inline-grid; place-items: center; font-size: 15px; }
.icon-btn:hover { background: rgba(26, 24, 23, .06); color: var(--text); }
label.fld { display: block; font-size: 13px; font-weight: 500; color: var(--body); margin-bottom: 14px; }
label.fld > span.lbl { display: block; margin-bottom: 6px; }
label.fld small.hint { display: block; color: var(--muted); font-weight: 400; margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; font: inherit; font-size: 14px; color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
}
textarea { min-height: 90px; resize: vertical; line-height: 1.5; }
textarea.tall { min-height: 220px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(201, 79, 26, .18); }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; margin-bottom: 12px; cursor: pointer; }
.check input { accent-color: var(--accent); width: 17px; height: 17px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 14px; }

/* Cards and pills */
.card { background: var(--card); border-radius: 22px; box-shadow: var(--shadow-md); padding: 22px 24px; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--card-soft); color: var(--body); white-space: nowrap; }
.pill.draft { background: #EEE9E1; color: var(--body); }
.pill.sent { background: #E7EEF7; color: #2A4E7A; }
.pill.viewed { background: #F6E9D3; color: var(--warn); }
.pill.accepted { background: #E3EFE6; color: var(--ok); }
.pill.expired { background: #F6E1DE; color: var(--danger); }
.pill.rfp { background: var(--text); color: #fff; }

/* Sign-in */
.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card { background: #fff; border-radius: 28px; box-shadow: var(--shadow-lg); padding: 36px; width: 100%; max-width: 380px; }
.login-card h1 { font-size: 40px; margin: 22px 0 6px; line-height: 1.05; }
.login-card .sub { color: var(--muted); margin: 0 0 22px; font-size: 14px; }
.login-card .btn { width: 100%; margin-top: 6px; }
.err { color: var(--danger); font-size: 14px; margin: 10px 0 0; }

/* Dashboard */
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.dash-head h1 { font-size: 48px; line-height: 1; }
.dash-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.dash-tools input[type=search] { width: 240px; border-radius: 999px; }
.follow { margin-bottom: 22px; }
.follow h2 { font-size: 26px; margin-bottom: 10px; }
.follow-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.follow-item { background: #FBEDE4; border-radius: 18px; padding: 14px 18px; text-decoration: none; color: var(--text); display: block; }
.follow-item b { display: block; font-weight: 600; }
.follow-item span { font-size: 13px; color: var(--accent-ink); }
.plist { display: grid; gap: 10px; }
.prow { display: grid; grid-template-columns: 1fr 150px 110px 170px; gap: 16px; align-items: center; background: #fff; border-radius: 18px; box-shadow: var(--shadow-sm); padding: 16px 20px; text-decoration: none; color: var(--text); }
.prow:hover { box-shadow: var(--shadow-md); }
.prow .t { font-weight: 600; }
.prow .m { font-size: 13px; color: var(--muted); margin-top: 2px; }
.prow .amt { text-align: right; font-variant-numeric: tabular-nums; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty h2 { color: var(--text); font-size: 32px; margin-bottom: 8px; }

/* Editor */
.ed-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.ed-head .title-in { flex: 1; min-width: 260px; font-family: var(--serif); font-size: 30px; font-weight: 700; border: 0; background: transparent; padding: 4px 0; border-radius: 0; border-bottom: 1px solid transparent; }
.ed-head .title-in:focus { box-shadow: none; border-bottom-color: var(--accent); }
.save-state { font-size: 13px; color: var(--muted); min-width: 70px; }
.save-state.bad { color: var(--danger); }
.tabs { display: flex; gap: 4px; padding: 5px; background: rgba(255, 255, 255, .72); border-radius: 999px; box-shadow: var(--shadow-sm); margin-bottom: 18px; width: fit-content; flex-wrap: wrap; }
.tab { border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 500; color: var(--body); padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.tab.on { background: var(--text); color: #fff; }
.banner { background: #FBEDE4; color: var(--text); border-radius: 16px; padding: 12px 18px; margin-bottom: 16px; font-size: 14px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.banner.ok { background: #E3EFE6; }
.ed-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; align-items: start; }
.sec-list { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; padding: 14px; }
.sec-list ol { list-style: none; margin: 0 0 12px; padding: 0; }
.sec-item { display: flex; align-items: center; gap: 6px; padding: 7px 8px; border-radius: 12px; cursor: pointer; border: 1px solid transparent; }
.sec-item:hover { background: var(--card-soft); }
.sec-item.on { background: var(--card-soft); border-color: var(--line); }
.sec-item.hidden-sec .sec-name { opacity: .45; text-decoration: line-through; }
.sec-item.part { margin-top: 8px; }
.sec-item.part .sec-name { font-weight: 700; }
.sec-item.drop-before { box-shadow: inset 0 2px 0 var(--accent); }
.sec-item .grip { cursor: grab; color: var(--muted); font-size: 13px; padding: 0 2px; user-select: none; }
.sec-type { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); display: block; }
.sec-name { font-size: 14px; line-height: 1.25; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sec-main { flex: 1; min-width: 0; }
.sec-tools { display: flex; opacity: 0; }
.sec-item:hover .sec-tools, .sec-item.on .sec-tools { opacity: 1; }
.form-card h2 { font-size: 30px; margin-bottom: 4px; }
.form-card .blurb { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.form-tools { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.list-fld { border: 1px solid var(--line); border-radius: 16px; padding: 12px; margin-bottom: 14px; background: var(--card-soft); }
.list-fld > .lbl { font-size: 13px; font-weight: 600; display: block; margin-bottom: 10px; }
.list-item { background: #fff; border-radius: 12px; border: 1px solid var(--line); padding: 12px 12px 2px; margin-bottom: 10px; }
.list-item-head { display: flex; justify-content: space-between; align-items: center; margin: -4px 0 6px; font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .5px; text-transform: uppercase; }
.list-item .list-fld { background: var(--card-soft); }
.price-calc { font-size: 13px; color: var(--muted); margin: -6px 0 12px; }
.price-calc b { color: var(--text); }
.img-fld { display: flex; gap: 12px; align-items: center; }
.img-fld .thumb { width: 72px; height: 72px; border-radius: 12px; background: var(--card-soft) center/cover no-repeat; border: 1px solid var(--line); flex: 0 0 auto; display: grid; place-items: center; font-size: 11px; color: var(--muted); }
.img-fld .thumb.pdf { background: var(--accent); color: #fff; font-weight: 700; }
.drop { outline: 2px dashed var(--accent); outline-offset: 4px; border-radius: 14px; }

/* Picker (add a section) */
.picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.pick { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: 12px 14px; cursor: pointer; font: inherit; }
.pick:hover { border-color: var(--accent); }
.pick b { display: block; font-size: 14px; }
.pick span { font-size: 12px; color: var(--muted); }
.pick-h { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 18px 0 8px; }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(26, 24, 23, .38); display: grid; place-items: center; padding: 20px; z-index: 50; }
.modal { background: #fff; border-radius: 26px; box-shadow: var(--shadow-lg); width: 100%; max-width: 720px; max-height: calc(100vh - 40px); overflow: auto; padding: 28px; }
.modal.wide { max-width: 980px; }
.modal h2 { font-size: 32px; margin-bottom: 6px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.choice button { text-align: left; border: 1px solid var(--line); background: var(--card-soft); border-radius: 18px; padding: 18px; cursor: pointer; font: inherit; }
.choice button.on { border-color: var(--accent); background: #FBEDE4; }
.choice b { display: block; font-family: var(--serif); font-size: 24px; margin-bottom: 4px; }
.choice span { font-size: 13px; color: var(--muted); }

/* Preview inside the app */
.preview-wrap { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-md); background: var(--bg); }
.preview-bar { background: var(--text); color: #F5F2EC; font-size: 13px; padding: 9px 16px; }
.preview-bar b { color: #F0A57E; }

/* Activity, checklist, output */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 8px 16px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .5px; text-transform: uppercase; padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); }
.tbl td { padding: 9px 8px 9px 0; border-bottom: 1px solid var(--card-soft); vertical-align: top; }
.bar { height: 6px; border-radius: 99px; background: var(--accent); min-width: 2px; }
.steps-out { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps-out li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 12px; }
.steps-out li::before { content: counter(s); width: 32px; height: 32px; border-radius: 999px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; }
.steps-out h3 { font-size: 22px; margin-bottom: 4px; }
.gap { color: var(--danger); font-weight: 600; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--text); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 14px; z-index: 60; box-shadow: var(--shadow-lg); }

@media (max-width: 1000px) {
  .ed-grid, .two { grid-template-columns: 1fr; }
  .sec-list { position: static; max-height: none; }
  .prow { grid-template-columns: 1fr auto; }
  .prow .hide-sm { display: none; }
  .topbar, .page { padding-left: 16px; padding-right: 16px; }
  .row2, .row3, .choice { grid-template-columns: 1fr; }
}
