/* Walking Schedule — Project Progress Management System
   Visual language transcribed from Wayne Choy's design mockups (2026-09-09). */

:root {
  --navy-900: #08203a;
  --navy-800: #0d2847;
  --navy-700: #123a5f;
  --navy-600: #1b4f7e;
  --blue-500: #1a6fd4;
  --blue-400: #2b8ae6;
  --blue-100: #e8f1fb;
  --ink: #17232f;
  --ink-soft: #55677a;
  --line: #d9e2ec;
  --page: #eef3f8;
  --card: #ffffff;
  --green: #22a45d;
  --gray-bar: #b9c2cc;
  --red: #e03b3b;
  --amber: #f0c040;
  --highlight: #ffdf8a;
  --past: #fdecec;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(13, 40, 71, .08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
          "PingFang HK", "Microsoft JhengHei", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { font-family: var(--font); background: var(--page); color: var(--ink); font-size: 14px; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

/* ---------- LOGIN ---------- */
.hero {
  position: relative; min-height: 100vh; overflow: hidden;
  display: flex; align-items: stretch;
  background:
    linear-gradient(180deg, rgba(6,24,44,.70) 0%, rgba(8,30,54,.30) 34%,
                            rgba(6,24,44,.48) 72%, rgba(5,20,38,.88) 100%),
    url('/img/skyline.jpg') center 40% / cover no-repeat,
    #06182c;
}
.hero-inner {
  position: relative; z-index: 1; width: 100%;
  display: grid; grid-template-columns: minmax(0,1fr) 384px; gap: 48px;
  padding: 7vh 52px 120px; align-items: start;
}
.hero-copy { color: #fff; text-shadow: 0 2px 10px rgba(0,16,36,.75), 0 4px 30px rgba(0,16,36,.55); }
.hero-copy h1 {
  font-size: clamp(30px, 4.3vw, 66px); line-height: 1.02; font-weight: 800;
  letter-spacing: -.5px; text-transform: uppercase; white-space: nowrap;
}
.hero-copy h1 .thin { display: block; font-weight: 300; letter-spacing: .5px; }
.hero-rule { height: 1px; background: rgba(255,255,255,.45); margin: 24px 0 18px; }
.hero-copy .slogan {
  font-size: clamp(11px, 1.12vw, 16px); letter-spacing: 2px; font-weight: 500;
  text-transform: uppercase; white-space: nowrap;
}
.hero-tagline {
  margin-top: 34px; display: inline-block; padding: 10px 38px;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.22);
  letter-spacing: 5px; font-size: 12px; text-transform: uppercase; white-space: nowrap;
}
.hero-foot {
  position: absolute; left: 52px; bottom: 34px; z-index: 2; color: #fff;
  letter-spacing: 3px; font-size: 11px; line-height: 2; text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0,16,36,.75);
}
.hero-foot span, .hero-foot-right span { display: block; }
.hero-foot .rule { width: 76px; height: 1px; background: rgba(255,255,255,.6); margin-top: 12px; }
.hero-foot-right {
  position: absolute; right: 30px; bottom: 34px; z-index: 2; color: rgba(255,255,255,.9);
  letter-spacing: 2px; font-size: 10px; line-height: 2; text-transform: uppercase; text-align: right;
  text-shadow: 0 2px 12px rgba(0,16,36,.75);
}

/* Clock stays pinned top-right; the login panel centres in the space below it. */
.hero-right { display: flex; flex-direction: column; min-height: 76vh; }
.hero-right .loginpanel { margin-top: auto; margin-bottom: auto; }
.clockbox { color: #fff; text-align: right; margin-bottom: 22px; text-shadow: 0 2px 14px rgba(0,16,36,.6); }
.clockbox .date { font-size: 22px; font-weight: 700; line-height: 1.1; letter-spacing: 1px; opacity: .9; }
.clockbox .date .yr { display: block; font-size: 13px; font-weight: 500; letter-spacing: 3px; opacity: .8; margin-top: 3px; }
.clockbox .time { font-size: 52px; font-weight: 800; line-height: 1.05; letter-spacing: -1px; opacity: .96; }
.clockbox .time .ampm { font-size: 18px; font-weight: 600; margin-left: 4px; vertical-align: super; }
.clockbox .rule { height: 1px; background: rgba(255,255,255,.45); margin-top: 10px; }

.loginpanel {
  background: rgba(10, 32, 56, .58); border: 1px solid rgba(255,255,255,.20);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: 14px; padding: 26px 24px 28px; color: #fff;
  box-shadow: 0 18px 50px rgba(3, 16, 32, .5);
}
.loginpanel h2 { font-size: 26px; font-weight: 600; margin-bottom: 18px; }
.login-opt {
  display: flex; align-items: center; gap: 14px; width: 100%;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.30);
  border-radius: 999px; padding: 14px 20px; color: #fff; font-size: 16px;
  margin-bottom: 14px; transition: background .15s, border-color .15s, transform .1s;
}
.login-opt:hover { background: rgba(255,255,255,.17); border-color: rgba(255,255,255,.55); }
.login-opt:active { transform: scale(.99); }
.login-opt .ico { width: 22px; text-align: center; font-size: 17px; }
.login-opt .chev { margin-left: auto; opacity: .8; }
.login-form { margin-top: 4px; }
.login-form label { display: block; font-size: 12px; letter-spacing: 1px; opacity: .85; margin-bottom: 6px; text-transform: uppercase; }
.login-form input {
  width: 100%; padding: 13px 16px; border-radius: 10px; font-size: 16px;
  border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.95); color: var(--ink);
  font-family: inherit;
}
.login-form input:focus { outline: 2px solid var(--blue-400); outline-offset: 1px; }
.btn-primary {
  width: 100%; margin-top: 14px; padding: 13px; border: none; border-radius: 10px;
  background: var(--blue-500); color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .3px;
}
.btn-primary:hover { background: var(--blue-400); }
.btn-link { display: block; background: none; border: none; color: #cfe3fa; font-size: 13px; margin-top: 12px; text-decoration: underline; }
.login-note { font-size: 12px; color: #bcd6f2; margin-top: 12px; line-height: 1.6; }
.login-hint { font-size: 11px; color: #9ab9d8; margin: 4px 0 10px; line-height: 1.5; }
.btn-demo {
  display: block; width: 100%; margin-bottom: 16px; padding: 13px 18px;
  background: linear-gradient(120deg, #1a6fd4, #2f9e44); border: none; border-radius: 10px;
  color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .3px; cursor: pointer;
  box-shadow: 0 4px 14px rgba(26,111,212,.35);
}
.btn-demo:hover { filter: brightness(1.08); }
#otc1 { text-align: center; font-size: 26px; letter-spacing: 10px; padding: 13px 6px; font-weight: 700; }
.err { color: #ffb4b4; font-size: 13px; margin-top: 10px; }

/* ---------- INTERIOR SHELL ---------- */
.topbanner {
  position: relative; height: 180px; overflow: hidden;
  background: url('/img/skyline.jpg') center 62%/cover no-repeat var(--navy-800);
  display: flex; align-items: flex-end; justify-content: space-between; padding: 0 28px 20px;
}
.topbanner::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,32,58,.86) 0%, rgba(8,32,58,.35) 55%, rgba(8,32,58,.80) 100%);
}
.topbanner > * { position: relative; z-index: 1; }
.brandblock { color: #fff; text-shadow: 0 2px 12px rgba(0,20,45,.5); }
.brandblock h1 { font-size: clamp(18px, 2vw, 26px); font-weight: 800; text-transform: uppercase; line-height: 1.05; letter-spacing: -.2px; }
.brandblock h1 .thin { font-weight: 300; }
.brandblock .slogan { font-size: clamp(9px, 1vw, 13px); letter-spacing: 3px; margin-top: 8px; text-transform: uppercase; }
.brandblock .sub { font-size: 10px; letter-spacing: 3px; margin-top: 10px; opacity: .85; display: flex; align-items: center; gap: 10px; text-transform: uppercase; }
.brandblock .sub::before { content: ''; width: 52px; height: 1px; background: rgba(255,255,255,.7); }
.bannerclock { color: #fff; text-align: right; }
.bannerclock .date { font-size: clamp(60px, 7.5vw, 100px); letter-spacing: 2px; font-weight: 900; text-transform: uppercase; line-height: 1; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.bannerclock .date .yr { display: block; font-size: clamp(13px, 1.4vw, 18px); font-weight: 500; letter-spacing: 2px; opacity: .85; margin-top: 3px; }
.bannerclock .time { font-size: clamp(20px, 2.4vw, 30px); font-weight: 700; line-height: 1.2; opacity: .95; margin-top: 5px; text-shadow: 0 1px 6px rgba(0,0,0,.3); }
.bannerclock .time .ampm { font-size: clamp(13px, 1.4vw, 18px); margin-left: 4px; }
.bannerclock .rule { display: none; }
.bannerclock .kv { display: none; }
.lang-sel {
  margin-top: 10px; display: block; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.3); border-radius: 6px;
  color: #fff; font-size: 12px; font-weight: 600; letter-spacing: 1px;
  padding: 4px 8px; cursor: pointer; appearance: auto; width: 100%;
}
.lang-sel option { background: #0a1929; color: #fff; }

.shell { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 180px); }
.sidebar { background: var(--navy-800); padding: 22px 0; color: #cfdcea; }
.sidebar a {
  display: flex; align-items: center; gap: 14px; padding: 13px 22px;
  text-decoration: none; font-size: 15px; color: #cfdcea;
}
.sidebar a:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar a.is-active { background: var(--blue-500); color: #fff; font-weight: 600; }
.sidebar .num {
  width: 26px; height: 26px; border-radius: 6px; background: rgba(255,255,255,.13);
  display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff; flex: none;
}
.sidebar a.is-active .num { background: rgba(255,255,255,.22); }
.sidebar .ico { width: 26px; text-align: center; font-size: 16px; flex: none; }
.sidebar hr { border: none; border-top: 1px solid rgba(255,255,255,.14); margin: 18px 22px; }
.main { padding: 26px 30px 40px; min-width: 0; }
/* Wayne's schedule design is full-width — no left nav, so the Gantt gets the room. */
.sched-page { min-height: calc(100vh - 150px); }
.main.full { padding: 18px 26px 30px; }
.backlink { display: inline-block; font-size: 13px; color: var(--blue-500); text-decoration: none; font-weight: 600; margin-bottom: 12px; }
.backlink:hover { text-decoration: underline; }

.pagehead { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; margin-bottom: 22px; flex-wrap: wrap; }
.pagehead h2 { font-size: 28px; color: var(--navy-700); font-weight: 700; }
.pagehead p { color: var(--ink-soft); margin-top: 6px; font-size: 14px; }

.stepper { display: flex; align-items: center; gap: 0; }
.stepper .step { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 132px; }
.stepper .dot {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: #c3ccd6; color: #fff; font-weight: 700; font-size: 15px;
}
.stepper .step.is-active .dot { background: var(--blue-500); }
.stepper .step.is-done .dot { background: var(--navy-600); }
.stepper .label { font-size: 13px; color: var(--ink-soft); white-space: nowrap; }
.stepper .step.is-active .label { color: var(--blue-500); font-weight: 700; }
.stepper .bar { height: 2px; background: #c3ccd6; flex: 1; min-width: 40px; margin-bottom: 26px; }
.stepper .bar.is-done { background: var(--blue-500); }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; }
.card > h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; color: var(--navy-700); margin-bottom: 18px; }
.card > h3 .ico { font-size: 20px; }

/* ---------- FORM ---------- */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.field { display: flex; flex-direction: column; }
.field label { font-size: 13px; font-weight: 700; color: var(--navy-700); margin-bottom: 7px; }
.field label .req { color: var(--red); }
.field input, .field textarea, .field select {
  border: 1px solid var(--line); border-radius: 7px; padding: 11px 13px;
  font-size: 14px; font-family: inherit; color: var(--ink); background: #fbfcfe;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--blue-400); outline-offset: -1px; background: #fff; }
.formfoot { display: flex; justify-content: space-between; margin-top: 22px; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px;
  font-size: 12.5px; color: var(--ink-soft); line-height: 1.6; }
.consent input { margin-top: 2px; flex: none; }
.consent a { color: var(--blue-500); }
.btn {
  border: 1px solid var(--line); background: #f2f5f9; color: var(--ink);
  border-radius: 8px; padding: 11px 22px; font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
}
.btn:hover { background: #e7edf4; }
.btn.blue { background: var(--blue-500); border-color: var(--blue-500); color: #fff; }
.btn.blue:hover { background: var(--blue-400); }
.uploadbox {
  border: 1px dashed #b7c6d8; background: var(--blue-100); border-radius: 8px;
  padding: 16px; text-align: center; color: var(--navy-600); font-weight: 600; font-size: 14px;
}
.uploadbox small { display: block; font-weight: 400; color: var(--ink-soft); margin-top: 3px; }
.projimg { width: 100%; height: 220px; object-fit: cover; border-radius: 8px; display: block; }

/* ---------- PROJECT LIST ---------- */
.projgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.projcard { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-decoration: none; color: inherit; display: block; transition: transform .12s, box-shadow .12s; }
.projcard:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(13,40,71,.16); }
.projcard img { width: 100%; height: 150px; object-fit: cover; display: block; }
.projcard .body { padding: 16px 18px 18px; }
.projcard h4 { font-size: 17px; color: var(--navy-700); margin-bottom: 6px; }
.projcard .meta { font-size: 13px; color: var(--ink-soft); line-height: 1.7; }
.projcard .stats { display: flex; gap: 14px; margin-top: 12px; font-size: 12px; }
.projcard .stats b { display: block; font-size: 17px; color: var(--navy-700); }
.projcard-toprow { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.pay-badge { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; letter-spacing: .3px; }
.pay-badge.pending { background: #fff8e1; color: #8a6000; border: 1px solid #f5cc5a; }
.pay-badge.paid    { background: #e6f9ee; color: #1a6e3c; border: 1px solid #6fcea0; }
.pay-toggle { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; border: 1px solid #d0d8e4; background: #f4f6fb; color: var(--navy-700); cursor: pointer; margin-left: auto; }
.pay-toggle:hover { background: #e7edf4; }

/* ---------- PAYMENT CARD ---------- */
.payment-card { margin-top: 20px; }
.pay-fees { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.pay-fee-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pay-fee-label { font-size: 14px; color: var(--ink-soft); min-width: 180px; }
.pay-fee-amount { font-size: 20px; font-weight: 700; color: var(--navy-700); }
.pay-fee-note { font-size: 12px; font-weight: 400; color: var(--ink-soft); margin-left: 6px; }
.zelle-box { display: flex; align-items: flex-start; gap: 14px; background: #f0f7ff; border: 1px solid #c3ddf7; border-radius: 10px; padding: 16px 18px; margin-top: 4px; }
.zelle-ico { font-size: 26px; line-height: 1; margin-top: 2px; }
.zelle-label { font-size: 12px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 2px; }
.zelle-num { font-size: 22px; font-weight: 700; color: var(--navy-700); letter-spacing: 1px; margin-bottom: 6px; }
.zelle-note { font-size: 12px; color: var(--ink-soft); line-height: 1.5; }

/* ---------- SCHEDULE ---------- */
.infobar {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 0; padding: 14px 18px; margin-bottom: 16px; flex-wrap: wrap;
}
.infobar .item { display: flex; align-items: center; gap: 11px; padding: 0 16px; border-right: 1px solid var(--line); flex: 1 1 180px; min-width: 0; }
.infobar .item:last-of-type { border-right: none; }
.infobar .ico { font-size: 22px; color: var(--blue-500); }
.infobar .k { font-size: 13px; font-weight: 700; color: var(--blue-500); }
.infobar .v { font-size: 13.5px; color: var(--ink); margin-top: 2px; line-height: 1.4; }
.infobar .btn { margin-left: auto; flex: none; text-align: left; line-height: 1.3; }

.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.toolbar h3 { font-size: 20px; color: var(--navy-700); display: flex; align-items: center; gap: 10px; margin-right: auto; }
.searchwrap { position: relative; }
.searchwrap input {
  width: 260px; max-width: 32vw; padding: 10px 14px 10px 38px; border: 1px solid var(--line);
  border-radius: 8px; font-size: 14px; font-family: inherit; background: #fff;
}
.searchwrap input:focus { outline: 2px solid var(--blue-400); outline-offset: -1px; }
.searchwrap .mag { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-soft); }
.searchcount { font-size: 13px; color: var(--ink-soft); }

.tablewrap { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: auto; max-height: 68vh; }
table.sched { border-collapse: separate; border-spacing: 0; font-size: 11.5px; white-space: nowrap; table-layout: fixed; }
table.sched th {
  background: var(--navy-700); color: #fff; font-weight: 600; font-size: 10.5px;
  padding: 7px 6px; text-align: center; white-space: normal; line-height: 1.25; position: sticky; top: 0; z-index: 3;
  border-right: 1px solid rgba(255,255,255,.12);
}
table.sched thead tr:first-child th { border-bottom: 1px solid rgba(255,255,255,.18); }
table.sched td { padding: 4px 7px; border-bottom: 1px solid #eef2f6; background: #fff; height: 30px; overflow: hidden; text-overflow: ellipsis; }
table.sched tbody tr:hover td { background: #f6faff; }
table.sched tr.hit td { background: var(--highlight) !important; }
table.sched td.c { text-align: center; }
table.sched .stick { position: sticky; z-index: 2; }
table.sched th.stick { z-index: 4; }
.col-id { left: 0; text-align: center; }
.col-task { left: 34px; }
.col-proj, .col-addr { white-space: normal; font-size: 10.5px; color: var(--ink-soft); }
.clamp2 {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.25; max-height: 26px;
}

td.col-task { font-weight: 600; color: var(--navy-700); }
td.col-task.sub { font-weight: 500; padding-left: 22px; color: var(--ink); }
td.col-task.sub::before { content: '↳'; margin-right: 6px; color: var(--ink-soft); }
.phone { color: var(--blue-500); text-decoration: none; font-weight: 600; font-size: 11px; }
.phone:hover { text-decoration: underline; }
.msgbtn { background: none; border: none; color: var(--navy-700); font-weight: 600; font-size: 11px; display: inline-flex; align-items: center; gap: 5px; padding: 2px 6px; border-radius: 5px; }
.msgbtn:hover { background: var(--blue-100); color: var(--blue-500); }
.levelbtn { background: none; border: none; color: var(--ink-soft); font-size: 12px; padding: 2px 6px; border-radius: 5px; }
.levelbtn:hover { background: var(--blue-100); color: var(--blue-500); }
.pbar { position: relative; width: 62px; height: 18px; background: #eef1f5; border-radius: 3px; overflow: hidden; margin: 0 auto; }
.pbar .fill { position: absolute; inset: 0 auto 0 0; border-radius: 3px; }
.pbar .txt { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--ink); }
.pbar .txt.on { color: #fff; }
.status { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-size: 11px; }
.status .dot { width: 14px; height: 14px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 9px; flex: none; }
.s-completed { color: var(--green); } .s-completed .dot { background: var(--green); }
.s-progress  { color: var(--blue-400); } .s-progress .dot { background: var(--blue-400); }
.s-notstarted{ color: var(--ink-soft); } .s-notstarted .dot { background: var(--gray-bar); }
.s-delayed   { color: var(--red); } .s-delayed .dot { background: var(--red); }

.gantt-cell { padding: 0 !important; position: relative; }
.gantt-row { position: relative; height: 30px; }
.gantt-row .grid { position: absolute; inset: 0; }
.gantt-row .grid i { position: absolute; top: 0; bottom: 0; width: 1px; background: #eef2f6; }
.gantt-row .past { position: absolute; top: 0; bottom: 0; left: 0; background: var(--past); }
.gantt-row .today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--red); opacity: .85; }
.gantt-row .bar { position: absolute; top: 8px; height: 13px; border-radius: 3px; min-width: 3px; }
.gantt-row .bar.completed { background: var(--green); }
.gantt-row .bar.progress { background: var(--blue-400); }
.gantt-row .bar.notstarted { background: var(--gray-bar); }
.gantt-row .bar.delayed { background: var(--red); }
.gantt-row .ms { position: absolute; top: 9px; width: 12px; height: 12px; background: var(--red); transform: rotate(45deg); margin-left: -6px; }
th.gantt-head { padding: 0 !important; }
.ghead { position: relative; height: 100%; }
.ghead .yr { display: flex; }
.ghead .yr span { text-align: center; font-size: 12px; font-weight: 700; padding: 5px 0; border-right: 1px solid rgba(255,255,255,.2); }
.ghead .mo { display: flex; }
.ghead .mo span { text-align: center; font-size: 9px; font-weight: 500; padding: 4px 0; border-right: 1px solid rgba(255,255,255,.12); overflow: hidden; letter-spacing: -.2px; }
.todaypill {
  position: absolute; background: var(--red); color: #fff; font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 4px; transform: translateX(-50%); white-space: nowrap; z-index: 2;
}

.legend { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 14px 18px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 14px; font-size: 13px; }
.legend .k { display: flex; align-items: center; gap: 7px; color: var(--ink-soft); }
.legend .sw { width: 18px; height: 14px; border-radius: 3px; }
.legend .sw.diamond { width: 13px; height: 13px; border-radius: 2px; transform: rotate(45deg); background: var(--red); }
.legend .totals { margin-left: auto; display: flex; gap: 18px; color: var(--ink-soft); }
.legend .totals b { color: var(--navy-700); }

/* ---------- SMS POPOVER ---------- */
.smsmodal { position: fixed; inset: 0; background: rgba(8,32,58,.45); display: grid; place-items: center; z-index: 60; padding: 20px; }
.smsmodal[hidden] { display: none !important; }
.smsbox { background: #fff; border-radius: 14px; width: min(560px, 100%); box-shadow: 0 24px 60px rgba(5,20,40,.4); overflow: hidden; }
.smsbox header { background: var(--navy-700); color: #fff; padding: 15px 20px; display: flex; align-items: center; gap: 10px; }
.smsbox header h4 { font-size: 16px; font-weight: 700; }
.smsbox header .x { margin-left: auto; background: none; border: none; color: #fff; font-size: 20px; opacity: .8; }
.smsbox .body { padding: 18px 20px 22px; }
.smsmeta { font-size: 13px; color: var(--ink-soft); margin-bottom: 14px; line-height: 1.7; }
.smsmeta b { color: var(--navy-700); }
.bubble { background: var(--blue-500); color: #fff; border-radius: 14px; padding: 13px 16px; font-size: 13.5px; line-height: 1.6; margin-bottom: 12px; position: relative; }
.bubble .tag { display: block; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; opacity: .85; margin-bottom: 6px; font-weight: 700; }
.bubble mark { background: none; color: #ffd97a; font-weight: 700; }
.smsfoot { display: flex; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.sendto { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.sendto input {
  border: 1px solid var(--line); border-radius: 7px; padding: 9px 11px;
  font-size: 13px; font-family: inherit; width: 150px; background: #fbfcfe; color: var(--ink);
}
.sendto input:focus { outline: 2px solid var(--blue-400); outline-offset: -1px; background: #fff; }
.smsstate { font-size: 13px; color: var(--ink-soft); }
.pill { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .5px; padding: 3px 9px; border-radius: 999px; background: #fdf3d6; color: #8a6a12; text-transform: uppercase; }
.pill.live { background: #dcf5e6; color: #17673c; }

@media print {
  /* Hide interactive controls */
  .sidebar, .toolbar, .searchwrap, .infobar .btn, .topbanner .bannerclock,
  .levelbtn, .msgbtn, .backlink, .legend .totals, .phonewrap, .smsmodal,
  .viewtoggle, #btn-projcols, #btn-export, #btn-print, #btn-report { display: none !important; }

  /* Full-width single column layout */
  .shell { grid-template-columns: 1fr; }
  body { background: #fff; font-size: 11px; }
  .sched-page { padding: 0; }
  .main { padding: 8px 0; }

  /* Header banner — keep brand block, compact it */
  .topbanner {
    background: var(--navy-900) !important;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
    padding: 10px 16px;
  }
  .brandblock h1 { font-size: 18px !important; }
  .brandblock .slogan, .brandblock .sub { font-size: 9px !important; }

  /* Info bar */
  .infobar { gap: 10px; padding: 8px 12px; flex-wrap: wrap; }
  .infobar .item .v { font-size: 11px; }

  /* Table — remove max-height scroll so all rows print */
  .tablewrap { max-height: none !important; overflow: visible !important; box-shadow: none; }

  /* Force table colours to print */
  .sched thead tr:first-child th {
    background: var(--navy-800) !important;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .sched td, .sched th { font-size: 10px; padding: 4px 5px; }

  /* Gantt bars */
  .bar { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .bar.completed  { background: var(--green)    !important; }
  .bar.progress   { background: var(--blue-400) !important; }
  .bar.delayed    { background: var(--red)      !important; }
  .bar.notstarted { background: var(--gray-bar) !important; }
  .past { background: rgba(200,210,220,.25) !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  /* Status chips */
  .status { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  /* Legend */
  .legend { padding: 6px 12px; font-size: 10px; }
  .sw { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  /* Page break control */
  thead { display: table-header-group; }
  tr { page-break-inside: avoid; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0,1fr); padding: 30px 22px 90px; }
  .shell { grid-template-columns: 1fr; }
  .shell { align-content: start; }
  .sidebar { display: flex; overflow-x: auto; padding: 8px; }
  .sidebar hr { display: none; }
  .grid2 { grid-template-columns: 1fr; }
  .main { padding: 18px 14px 30px; }
  /* Prevent nowrap text from bursting out of the single-column grid on mobile */
  .hero-copy h1 { white-space: normal; font-size: clamp(24px, 7vw, 36px); }
  .hero-copy .slogan { white-space: normal; font-size: 10px; letter-spacing: 1.5px; }
  .hero-tagline { white-space: normal; letter-spacing: 2px; padding: 9px 20px; }
  .clockbox { display: none; }
  .hero-right { min-height: auto; }
}

/* ---------- DESKTOP / PHONE VIEW ---------- */
.viewtoggle { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.viewtoggle .vt {
  border: none; background: #fff; color: var(--ink-soft); font-size: 13px; font-weight: 600;
  padding: 10px 14px; display: inline-flex; align-items: center; gap: 6px;
}
.viewtoggle .vt.is-on { background: var(--blue-500); color: #fff; }
.viewtoggle .vt:not(.is-on):hover { background: #eef3f9; color: var(--navy-700); }

.phonewrap { display: flex; flex-direction: column; align-items: center; padding: 22px 0 6px; }
.device {
  width: 390px; height: 720px; background: #0a1420; border-radius: 42px; padding: 12px;
  box-shadow: 0 24px 60px rgba(6, 22, 44, .34), 0 0 0 1px rgba(255,255,255,.12) inset;
  position: relative; flex: none;
}
.device-notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 124px; height: 24px; background: #0a1420; border-radius: 0 0 14px 14px; z-index: 3;
}
.device-screen {
  width: 100%; height: 100%; background: var(--page); border-radius: 32px; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.device-head { background: var(--navy-800); color: #fff; padding: 34px 18px 14px; position: sticky; top: 0; z-index: 2; }
.device-head .ph-title { font-size: 17px; font-weight: 700; }
.device-head .ph-sub { font-size: 12px; color: #a9c3dd; margin-top: 3px; }
.phonecap { margin-top: 14px; font-size: 13px; color: var(--ink-soft); }

.cards { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.mcard { background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 13px 14px; }
.mcard.hit { background: var(--highlight); }
.mtop { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 9px; }
.mtop .mid {
  background: var(--navy-700); color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 5px; padding: 2px 7px; flex: none; margin-top: 1px;
}
.mtop h4 { font-size: 14px; color: var(--navy-700); font-weight: 700; line-height: 1.3; flex: 1; }
.mcard .mrow { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; padding: 3px 0; }
.mcard .mk { color: var(--ink-soft); flex: none; }
.mcard .mv { color: var(--ink); text-align: right; font-weight: 600; }
.mcall {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 0 4px;
  background: var(--blue-100); color: var(--blue-500); border-radius: 9px; padding: 11px;
  font-weight: 700; font-size: 14px; text-decoration: none;
}
.mcall:active { background: #d8e8fb; }
.mprog { position: relative; height: 20px; background: #eef1f5; border-radius: 5px; margin: 10px 0 4px; overflow: hidden; }
.mprog .fill { position: absolute; inset: 0 auto 0 0; }
.mprog span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--ink); }
.mprog span.on { color: #fff; }
.mbar { position: relative; height: 8px; background: #eef1f5; border-radius: 4px; margin: 10px 0 2px; }
.mbar .seg { position: absolute; top: 0; bottom: 0; border-radius: 4px; }
.mbar .now { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--red); }
.msms {
  width: 100%; margin-top: 10px; border: 1px solid var(--line); background: #fff;
  border-radius: 9px; padding: 10px; font-size: 13px; font-weight: 600; color: var(--navy-700);
}
.msms:active { background: #f2f6fb; }

/* On a real phone the table is unusable — always show the cards, without the frame. */
@media (max-width: 760px) {
  .viewtoggle { display: none; }
  .tablewrap { display: none !important; }
  .phonewrap { display: block !important; padding: 0; }
  .phonewrap[hidden] { display: block !important; }
  .device { width: auto; height: auto; background: none; border-radius: 0; padding: 0; box-shadow: none; }
  .device-notch, .phonecap { display: none; }
  .device-screen { border-radius: 0; height: auto; overflow: visible; background: transparent; }
  .device-head { display: none; }
  .cards { padding: 0; }

  /* Banner: compact, no wrapping headline fighting the clock */
  .topbanner { height: auto; min-height: 96px; padding: 14px 16px; align-items: flex-start; }
  .brandblock h1 { font-size: 17px; line-height: 1.15; }
  .brandblock .slogan { font-size: 9px; letter-spacing: 1.2px; margin-top: 5px; }
  .brandblock .sub { display: none; }
  .bannerclock .time { font-size: 22px; }
  .bannerclock .time .ampm { font-size: 11px; }
  .bannerclock .date { font-size: 16px; letter-spacing: 1px; }
  .bannerclock .rule, .bannerclock .kv { display: none; }

  /* Info bar: a tight stacked list, not stretched flex rows */
  .infobar { flex-direction: column; align-items: stretch; gap: 0; padding: 4px 14px; }
  .infobar .item {
    flex: 0 0 auto; width: 100%; border-right: none; border-bottom: 1px solid var(--line);
    padding: 11px 0; align-items: flex-start;
  }
  .infobar .item:last-of-type { border-bottom: none; }
  .infobar .ico { font-size: 17px; }
  .infobar .btn { margin: 12px 0 4px; width: 100%; justify-content: center; text-align: center; }

  .main.full, .main { padding: 14px 14px 26px; }
  .toolbar { gap: 9px; }
  .toolbar h3 { width: 100%; font-size: 18px; }
  .searchwrap { flex: 1 1 100%; }
  .searchwrap input { width: 100%; max-width: none; }
  .toolbar .btn { flex: 1; justify-content: center; padding: 10px 12px; font-size: 13px; }
  .legend { font-size: 12px; gap: 12px; }
  .legend .totals { margin-left: 0; width: 100%; flex-wrap: wrap; gap: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
  .smsbox { max-height: 88vh; overflow-y: auto; }
  .sendto { width: 100%; }
  .sendto input { flex: 1; width: auto; }
}

@media (max-width: 420px) {
  .brandblock h1 { font-size: 15px; }
  .brandblock .slogan { display: none; }
}

/* ---------- AI GENERATE ---------- */
.fee-panel {
  margin-top: 18px; border: 1px solid #c3ddf7; border-radius: 10px;
  background: #f0f7ff; padding: 14px 16px;
}
.fee-panel-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--navy-700); margin-bottom: 10px; }
.fee-panel-rows { display: flex; flex-direction: column; gap: 7px; }
.fee-panel-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--ink); }
.fee-amt { font-size: 15px; font-weight: 700; color: var(--navy-700); }
.fee-amt em { font-style: normal; font-size: 11px; font-weight: 400; color: var(--ink-soft); margin-left: 3px; }
.fee-zelle { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #c3ddf7; }
.fee-zelle-label { font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: var(--ink-soft); }
.fee-zelle-num { font-size: 16px; font-weight: 700; color: var(--navy-700); letter-spacing: .5px; }
.fee-paid-check { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--navy-700); cursor: pointer; }
.fee-paid-check input { width: 16px; height: 16px; accent-color: var(--blue-500); cursor: pointer; }

.btn-ai {
  width: 100%; margin-top: 16px; border: none; border-radius: 10px;
  background: linear-gradient(120deg, var(--blue-500), #2f7fe0 55%, #4a9bf0);
  color: #fff; padding: 15px 18px; text-align: left;
  display: flex; align-items: center; gap: 13px;
  box-shadow: 0 6px 18px rgba(26, 111, 212, .32);
}
.btn-ai:hover { filter: brightness(1.06); }
.btn-ai:disabled { opacity: .75; }
.btn-ai .sparkle { font-size: 20px; }
.btn-ai b { display: block; font-size: 15px; font-weight: 700; }
.btn-ai small { display: block; font-size: 12px; opacity: .9; margin-top: 2px; font-weight: 400; }
.field select {
  border: 1px solid var(--line); border-radius: 7px; padding: 11px 13px;
  font-size: 14px; font-family: inherit; color: var(--ink); background: #fbfcfe;
}

.aimodal { position: fixed; inset: 0; background: rgba(8,32,58,.5); display: grid; place-items: center; z-index: 70; padding: 20px; }
.aimodal[hidden] { display: none !important; }
.aibox {
  background: #fff; border-radius: 16px; width: min(520px, 100%); padding: 30px 30px 26px;
  box-shadow: 0 24px 60px rgba(5,20,40,.42); text-align: center;
}
.aibox .spark { font-size: 34px; }
.aibox h4 { font-size: 19px; color: var(--navy-700); margin: 12px 0 6px; }
.aibox p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }
.ailog { text-align: left; margin: 18px 0 6px; font-size: 13.5px; color: var(--ink); min-height: 132px; }
.ailog div { padding: 5px 0; opacity: 0; transform: translateY(4px); animation: aistep .32s ease forwards; }
.ailog div::before { content: '✓'; color: var(--green); font-weight: 700; margin-right: 9px; }
@keyframes aistep { to { opacity: 1; transform: none; } }
.aibar { height: 6px; background: #eef1f5; border-radius: 3px; overflow: hidden; margin-top: 6px; }
.aibar i { display: block; height: 100%; width: 0; background: var(--blue-500); border-radius: 3px; transition: width .4s ease; }
.genflag {
  background: linear-gradient(120deg, #e8f1fb, #f3f8ff); border: 1px solid #cfe0f5;
  color: var(--navy-700); border-radius: 10px; padding: 11px 16px; margin-bottom: 12px; font-size: 13.5px;
}
.genflag b { color: var(--blue-500); }

/* Language selector on the landing page (inside the clock box, right column). Wayne 2026-09-18: pull-down, small. */
.lang-sel-hero { width: auto; min-width: 150px; margin: 10px 0 0 auto; font-size: 13px; letter-spacing: .5px; text-shadow: none; }
