/* Client portal. Sizes follow Client.dc.html (body 16-17, titles 32/24). */

/* Sign in, welcome and no access ------------------------------------- */
.field-bg {
  min-height: 100vh; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center;
  padding: 48px 24px; background: var(--teal);
}
.field-bg.black { background: #000; }
.field-logos {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between;
  padding: 24px 0; pointer-events: none;
}
.field-logos img { width: 170%; max-width: none; filter: invert(1); opacity: .035; }
.auth-card {
  position: relative; width: 100%; max-width: 400px; background: #fff; border-radius: 16px; padding: 40px;
  display: flex; flex-direction: column; gap: 24px;
}
.auth-card .logo { height: 16px; width: auto; max-width: 100%; align-self: center; }
.auth-card h1 { margin: 0; font-size: 24px; font-weight: 600; color: var(--teal); }
.auth-card .lede { font-size: 15px; line-height: 1.5; color: #444; }
.auth-card .input { padding: 0 16px; font-size: 15px; }
.auth-card .btn-big { height: 56px; font-size: 15px; }
.auth-card .check { font-size: 15px; font-weight: 500; }
.auth-card .check span { display: flex; flex-direction: column; gap: 2px; }
.auth-card .check small { font-size: 15px; font-weight: 400; color: var(--t3); }
.auth-card .links { display: flex; gap: 24px; }
.auth-card .links .btn-link { font-size: 14px; }

/* Shell ----------------------------------------------------------------- */
.c-header {
  height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 48px;
  border-bottom: 1px solid var(--line); background: #fff; position: relative; z-index: 10; gap: 16px;
}
.c-header .brand { display: flex; align-items: center; gap: 20px; min-width: 0; }
.c-header .brand a { display: flex; }
.c-header .brand img { height: 16px; width: auto; }
.c-header .brand .div { width: 1px; height: 20px; background: var(--bar); flex: none; }
.c-header .brand .name { font-size: 15px; font-weight: 600; white-space: nowrap; }
.me-btn {
  display: flex; align-items: center; gap: 12px; background: none; border: none; padding: 4px 8px 4px 4px;
  border-radius: 24px; cursor: pointer; font-size: 16px; font-weight: 500;
}
.me-btn:hover { background: var(--card); }
.menu .email { padding: 10px 12px; font-size: 15px; color: var(--t3); overflow-wrap: anywhere; }

.page { max-width: 1080px; margin: 0 auto; padding: 32px 48px 120px; display: flex; flex-direction: column; gap: 48px; }
.page.wide { max-width: 1160px; gap: 32px; }
.page.home { padding-top: 64px; gap: 56px; }
.c-title { font-size: 32px; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.c-title.teal { color: var(--teal); }
.c-sub { font-size: 17px; color: var(--t3); }
.c-h2 { font-size: 24px; font-weight: 600; margin: 0; }
.c-h2.teal { color: var(--teal); }
.stack { display: flex; flex-direction: column; }

.c-banner {
  background: var(--card); border-radius: 16px; padding: 24px; display: flex; justify-content: space-between;
  align-items: center; gap: 16px; flex-wrap: wrap;
}
.c-banner .t { font-size: 20px; font-weight: 600; color: var(--teal); }
.c-banner .s { font-size: 16px; color: var(--t2); }
.c-banner .hint { font-size: 16px; font-weight: 500; }
.c-banner .btn { height: 48px; padding: 0 22px; font-size: 16px; }
.c-banner.flat { border-radius: 0; padding: 14px 24px; flex: none; }

.timeline .tl-name { font-size: 16px; }
.timeline .tl-date { font-size: 15px; color: var(--t3); margin-top: 2px; }

/* Dashboard -------------------------------------------------------------- */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.proj-card { padding: 12px; display: flex; flex-direction: column; gap: 20px; }
.proj-card .btn { height: 40px; border-radius: 8px; font-size: 16px; }
.update-row { display: flex; align-items: baseline; gap: 16px; padding: 20px 0; }
.update-row .txt { flex: 1; font-size: 17px; line-height: 1.5; }
.update-row .when { width: 110px; text-align: right; font-size: 15px; color: var(--t3); flex: none; }

/* Project / deliverable --------------------------------------------------- */
.del-card { padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.del-card .btn { height: 44px; padding: 0 22px; font-size: 16px; }
.opt-mini { display: flex; flex-direction: column; gap: 8px; }
.team-row { display: flex; align-items: center; gap: 16px; padding: 16px 0; flex-wrap: wrap; }
.team-row .btn-link { font-size: 16px; }
.info-pop { left: 0; top: 40px; width: 340px; max-width: calc(100vw - 48px); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.info-pop .t { font-size: 14px; font-weight: 600; }
.info-pop .d { font-size: 14px; line-height: 1.5; color: var(--t2); }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.opt-grid.cmp { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.opt-card { padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.opt-card .chosen-bar {
  position: absolute; left: 0; right: 0; top: 0; height: 40px; background: var(--teal); color: #fff; font-size: 14px;
  font-weight: 600; display: flex; align-items: center; padding: 0 16px; z-index: 1;
}
.opt-card .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.c-modal-text { font-size: 17px; line-height: 1.5; }
.c-modal .field { font-size: 16px; }
.c-modal .textarea { font-size: 16px; }
.c-modal .btn { height: 48px; padding: 0 22px; font-size: 16px; }

/* Review ---------------------------------------------------------------- */
.review { height: 100vh; display: flex; flex-direction: column; background: #fff; }
.rv-head {
  height: 56px; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 16px 0 20px; border-bottom: 1px solid var(--line);
}
.rv-head .btn { height: 36px; padding: 0 14px; border-radius: 8px; font-size: 16px; }
.rv-head2 { flex: none; border-bottom: 1px solid var(--line); }
.rv-head2 .row1 { height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 16px 0 24px; }
.rv-head2 .row1 .crumbs { font-size: 14px; }
.rv-head2 .row2 {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding: 0 24px 14px;
}
.rv-head2 .btn { height: 40px; padding: 0 18px; }
.oldbar {
  flex: none; background: var(--card); padding: 12px 24px; display: flex; justify-content: space-between;
  align-items: center; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--t2); line-height: 1.5;
}
.oldbar .btn { height: 36px; padding: 0 16px; border-radius: 8px; }
.rv-body { flex: 1; min-height: 0; display: flex; }
.rv-canvas {
  flex: 1; min-width: 0; background: var(--canvas); overflow: auto; padding: 40px; display: flex; flex-direction: column;
  align-items: center; gap: 16px;
}
.rv-nav { width: 100%; max-width: 900px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.composer {
  position: absolute; width: 290px; background: #fff; border-radius: 12px; padding: 14px; box-shadow: var(--shadow-pop);
  display: flex; flex-direction: column; gap: 12px; cursor: default; z-index: 5;
}
.composer .hd { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.composer .textarea, .panel .textarea { font-size: 16px; }
.composer .btn, .panel .sm-btn { height: 34px; padding: 0 14px; border-radius: 8px; font-size: 16px; }
.panel { width: 400px; flex: none; border-left: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; min-height: 0; }
.panel-hd { height: 52px; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 20px; }
.panel-body { flex: 1; overflow: auto; padding: 4px 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.thread { background: var(--card); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.thread.on { outline: 2px solid #000; }
.thread .who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; font-size: 16px; flex-wrap: wrap; }
.thread .meta { color: var(--t4); font-size: 14px; }
.thread .body { font-size: 16px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.thread .body.clamp { color: var(--t4); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.thread .acts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.reply { background: #fff; border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.picker { display: flex; gap: 4px; background: #fff; border-radius: 10px; padding: 6px; align-self: flex-start; }
.reply .picker { background: var(--card); }
.picker button { width: 32px; height: 32px; border: none; border-radius: 8px; background: none; font-size: 16px; cursor: pointer; }
.picker button:hover { background: var(--btn2); }
.q-opts { display: flex; gap: 6px; flex-wrap: wrap; }
.q-opts button { height: 32px; padding: 0 14px; border: none; border-radius: 16px; background: var(--chip); font-size: 15px; font-weight: 500; cursor: pointer; }
.q-opts button.on { background: var(--teal); color: #fff; }

@media (max-width: 900px) {
  .c-header { padding: 0 20px; }
  .c-header .brand .div, .c-header .brand .name { display: none; }
  .page { padding: 24px 20px 96px; }
  .page.home { padding-top: 40px; }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rv-body { flex-direction: column; }
  .panel { width: 100%; border-left: none; border-top: 1px solid var(--line); max-height: 50vh; }
  .rv-canvas { padding: 20px; }
}

/* Admin preview of the portal ----------------------------------------------- */
.preview-pill {
  position: fixed; left: 16px; bottom: 16px; z-index: 45; background: #000; color: #fff; border-radius: 12px;
  padding: 10px 14px; font-size: 14px; font-weight: 500; display: flex; gap: 10px; align-items: center;
}
.preview-pill a { color: var(--yellow); font-weight: 600; }
.preview-pill a:hover { color: var(--yellow); opacity: .85; }
