
:root{
  --bg:#f6f8fb; --card:#ffffff; --ink:#111827; --muted:#64748b; --line:#e5e7eb;
  --blue:#2563eb; --blue2:#dbeafe; --green:#15803d; --greenBg:#dcfce7;
  --orange:#c2410c; --orangeBg:#ffedd5; --purple:#6d28d9; --purpleBg:#ede9fe;
  --shadow:0 10px 30px rgba(15,23,42,.08);
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:var(--ink)}
button,a{font:inherit}
.hidden{display:none!important}
.login-screen{min-height:100vh;display:grid;place-items:center;padding:24px;background:linear-gradient(180deg,#fff,#eef4ff)}
.login-card{width:min(440px,100%);background:#fff;border:1px solid var(--line);border-radius:28px;padding:28px;box-shadow:var(--shadow);text-align:center}
.brand-kicker{font-size:12px;letter-spacing:.18em;font-weight:900;color:var(--blue)}
.login-card h1,.app-header h1{margin:.25rem 0;font-size:32px;line-height:1.05;letter-spacing:-.04em}
.login-card p,.app-header p{color:var(--muted);font-weight:700;margin:0 0 20px}
input{width:100%;padding:15px 16px;border:1px solid var(--line);border-radius:16px;font-size:18px;margin:16px 0}
button,.button{border:0;border-radius:14px;background:var(--blue);color:white;padding:13px 16px;font-weight:900;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px}
button.secondary,.button.secondary{background:#eef2ff;color:#1e3a8a}
button.light,.button.light{background:#f8fafc;color:#0f172a;border:1px solid var(--line)}
button.danger{background:#fee2e2;color:#991b1b}
.fineprint{font-size:12px;margin-top:18px!important}
.app{max-width:1180px;margin:0 auto;padding:16px}
.app-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;background:#fff;border:1px solid var(--line);border-radius:24px;padding:20px;box-shadow:var(--shadow);position:sticky;top:0;z-index:10}
.logout{background:#f1f5f9;color:#0f172a;border:1px solid var(--line)}
.tabs{display:flex;gap:8px;overflow-x:auto;padding:14px 2px;position:sticky;top:118px;background:var(--bg);z-index:9}
.tab{background:#fff;color:#334155;border:1px solid var(--line);white-space:nowrap}
.tab.active{background:var(--blue);color:#fff;border-color:var(--blue)}
.view{display:none}
.view.active{display:block}
.grid{display:grid;grid-template-columns:repeat(12,1fr);gap:14px}
.card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:18px;box-shadow:0 8px 24px rgba(15,23,42,.05)}
.span-3{grid-column:span 3}.span-4{grid-column:span 4}.span-6{grid-column:span 6}.span-8{grid-column:span 8}.span-12{grid-column:span 12}
.metric-label{color:var(--muted);font-size:13px;font-weight:900;text-transform:uppercase;letter-spacing:.05em}
.metric-value{font-size:28px;font-weight:950;letter-spacing:-.04em;margin-top:6px}
.positive{color:var(--green)}
.negative{color:#b91c1c}
.section-title{font-size:22px;margin:22px 0 12px;letter-spacing:-.03em}
.card h3{margin:0 0 6px;font-size:22px;letter-spacing:-.03em}
.muted{color:var(--muted)}
.badges{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}
.badge{border-radius:999px;padding:6px 10px;font-size:12px;font-weight:900}
.tier1{background:var(--greenBg);color:var(--green)} .tier2{background:var(--orangeBg);color:var(--orange)} .tier3{background:#f1f5f9;color:#334155}
.status{background:var(--blue2);color:#1d4ed8}.upbid{background:var(--purpleBg);color:var(--purple)}
.money-row{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:14px 0}
.money-box{background:#f8fafc;border:1px solid var(--line);border-radius:16px;padding:12px}
.money-box b{display:block;font-size:18px}
.actions{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:12px}
.property-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:14px}
.sortbar{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 16px}
.sortbar button.active-sort{background:#111827;color:#fff}
.kv{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}
.kv div{padding:10px;border-radius:14px;background:#f8fafc;border:1px solid var(--line)}
.kv strong{display:block}
.timeline{display:grid;gap:8px;margin-top:8px}
.timeline-row{display:flex;justify-content:space-between;background:#f8fafc;border:1px solid var(--line);border-radius:12px;padding:10px}
.resource-link{display:flex;justify-content:space-between;align-items:center;gap:12px;border:1px solid var(--line);border-radius:16px;background:#fff;padding:14px;margin:10px 0}
.admin-row{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.notice{background:#eff6ff;border:1px solid #bfdbfe;color:#1e3a8a;padding:14px;border-radius:16px;margin:10px 0}
dialog{border:0;border-radius:24px;max-width:760px;width:calc(100% - 24px);padding:0;box-shadow:var(--shadow)}
dialog::backdrop{background:rgba(15,23,42,.45)}
#propertyModal{padding:20px}
.close-modal{width:calc(100% - 40px);margin:0 20px 20px;background:#111827}
.app-footer{text-align:center;color:#64748b;font-size:12px;padding:26px 10px;line-height:1.7}
@media(max-width:820px){
  .app{padding:10px}
  .app-header h1{font-size:24px}
  .tabs{top:104px}
  .span-3,.span-4,.span-6,.span-8{grid-column:span 12}
  .money-row{grid-template-columns:1fr}
  .actions{grid-template-columns:1fr}
  .kv{grid-template-columns:1fr}
  .metric-value{font-size:25px}
}



/* V6.2 previous-style clean interface with updated features */
:root{
  --bg:#f7f9fc;
  --card:#ffffff;
  --ink:#111827;
  --muted:#64748b;
  --line:#e6edf5;
  --blue:#2563eb;
  --blue2:#eaf2ff;
  --green:#15803d;
  --greenBg:#e9f9ef;
  --orange:#c2410c;
  --orangeBg:#fff3e8;
  --purple:#6d28d9;
  --purpleBg:#f1edff;
  --shadow:0 8px 24px rgba(15,23,42,.06);
}
body{
  background:#f7f9fc;
  color:#111827;
}
.login-screen{
  background:#f7f9fc;
}
.login-card{
  border:1px solid var(--line);
  box-shadow:0 12px 34px rgba(15,23,42,.08);
  border-radius:26px;
}
.login-card h1{
  color:#111827;
}
.login-card button{
  width:100%;
  min-height:48px;
  box-shadow:none;
}
.app-header{
  position:relative;
  top:auto;
  z-index:auto;
  background:#ffffff;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  border-radius:24px;
  padding:18px;
}
.app-header h1{
  font-size:26px;
  letter-spacing:-.04em;
}
.app-header p{
  margin:0;
}
.tabs{
  position:sticky;
  top:0;
  z-index:20;
  margin:12px 0;
  padding:8px;
  gap:8px;
  background:rgba(247,249,252,.92);
  backdrop-filter:blur(10px);
  border:0;
  border-radius:0;
  box-shadow:none;
}
.tab{
  background:#ffffff;
  color:#334155;
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px 14px;
  font-weight:900;
  box-shadow:none;
}
.tab.active{
  background:#2563eb;
  color:#ffffff;
  border-color:#2563eb;
  box-shadow:none;
}
.card{
  background:#ffffff;
  border:1px solid var(--line);
  border-radius:22px;
  box-shadow:var(--shadow);
}
.card:hover{
  transform:none;
  box-shadow:var(--shadow);
}
.metric-label{
  color:#64748b;
}
.metric-value{
  color:#111827;
}
.positive,
.positive.metric-value{
  color:#15803d;
}
.negative{
  color:#b91c1c;
}
.money-box{
  background:#f8fafc;
  border:1px solid var(--line);
}
button,.button{
  min-height:46px;
  border-radius:14px;
  box-shadow:none;
}
button.secondary,.button.secondary{
  background:#eef4ff;
  color:#1e40af;
  border:1px solid #dbeafe;
}
button.light,.button.light{
  background:#ffffff;
  color:#0f172a;
  border:1px solid var(--line);
}
.notice{
  background:#eef4ff;
  border:1px solid #dbeafe;
  color:#1e3a8a;
}
.resource-link{
  background:#ffffff;
}
.app-footer{
  border-top:1px solid var(--line);
  margin-top:18px;
}
.brand-kicker{
  color:#2563eb;
}
.badge{
  border:1px solid rgba(15,23,42,.04);
}
.tier1{background:#e9f9ef;color:#15803d}
.tier2{background:#fff3e8;color:#c2410c}
.tier3{background:#f1f5f9;color:#334155}
.status{background:#eaf2ff;color:#1d4ed8}
.upbid{background:#f1edff;color:#6d28d9}
@media(max-width:820px){
  .app{padding:10px}
  .app-header{
    padding:14px;
    border-radius:20px;
  }
  .app-header h1{font-size:22px}
  .app-header .brand-kicker{font-size:10px}
  .logout{padding:10px 12px;min-height:40px}
  .tabs{
    top:0;
    overflow-x:auto;
    padding:8px 0;
    background:rgba(247,249,252,.96);
  }
  .tab{
    padding:11px 12px;
  }
}


/* V6.3 structure fix: distinct pages, no repeated full-card feeds */
.page-hero{
  background:linear-gradient(135deg,#0f172a,#1d4ed8);
  color:white;
  border-radius:24px;
  padding:24px;
  margin:10px 0 18px;
  box-shadow:0 14px 36px rgba(15,23,42,.12);
}
.page-hero h2{
  margin:4px 0 6px;
  font-size:30px;
  letter-spacing:-.04em;
}
.page-hero p{
  margin:0;
  color:#dbeafe;
  font-weight:700;
}
.hero-label{
  font-size:12px;
  letter-spacing:.16em;
  text-transform:uppercase;
  font-weight:950;
  color:#bfdbfe;
}
.dashboard-layout{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-top:14px;
}
.report-panel h3,
.focus-panel h3{
  margin-top:0;
}
.summary-row{
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
  border-bottom:1px solid var(--line);
}
.summary-row:last-child{border-bottom:0}
.summary-row span{color:#64748b;font-weight:800}
.summary-row strong{text-align:right}
.summary-row.emphasis strong{font-size:22px}
.panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.focus-panel{margin-top:14px}
.compact-list{
  display:grid;
  gap:10px;
}
.compact-row{
  display:grid;
  grid-template-columns:1fr auto auto;
  gap:12px;
  align-items:center;
  padding:12px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#f8fafc;
}
.row-money{
  font-weight:950;
  font-size:17px;
}
.pipeline-board{
  display:grid;
  grid-template-columns:repeat(4,minmax(240px,1fr));
  gap:14px;
  overflow-x:auto;
  padding-bottom:8px;
}
.stage-column{
  background:#eef4ff;
  border:1px solid #dbeafe;
  border-radius:22px;
  padding:12px;
  min-height:180px;
}
.stage-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:10px;
  color:#1e3a8a;
}
.stage-head span{
  background:#fff;
  border:1px solid #dbeafe;
  border-radius:999px;
  padding:4px 9px;
  font-weight:950;
}
.pipeline-card{
  margin-bottom:10px;
  padding:14px;
  box-shadow:none;
}
.card-topline{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:flex-start;
}
.pipeline-card h3{
  font-size:18px;
}
.pipeline-numbers{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  margin:12px 0;
}
.pipeline-numbers div{
  background:#f8fafc;
  border:1px solid var(--line);
  border-radius:12px;
  padding:8px;
}
.pipeline-numbers span{
  display:block;
  color:#64748b;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
}
.pipeline-numbers strong{
  display:block;
  font-size:14px;
}
.empty-stage{
  color:#64748b;
  font-weight:800;
  padding:18px;
  text-align:center;
  background:#fff;
  border:1px dashed #bfdbfe;
  border-radius:16px;
}
.records-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-bottom:14px;
}
.records-table{
  display:grid;
  gap:8px;
}
.records-table-head,
.records-table-row{
  display:grid;
  grid-template-columns:1.3fr .7fr 1fr 1.6fr;
  gap:10px;
  align-items:center;
}
.records-table-head{
  color:#64748b;
  font-size:12px;
  font-weight:950;
  text-transform:uppercase;
  padding:0 10px;
}
.records-table-row{
  padding:12px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#f8fafc;
}
.records-table-row small{
  display:block;
  color:#64748b;
}
.table-actions{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}
.table-actions .button,
.table-actions button{
  min-height:38px;
  padding:8px 10px;
  font-size:12px;
}
.admin-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
}
@media(max-width:920px){
  .dashboard-layout,
  .records-grid{
    grid-template-columns:1fr;
  }
  .pipeline-board{
    grid-template-columns:repeat(2,minmax(250px,1fr));
  }
  .records-table-head{display:none}
  .records-table-row{
    grid-template-columns:1fr;
  }
  .table-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
  }
}
@media(max-width:620px){
  .page-hero{padding:18px;border-radius:20px}
  .page-hero h2{font-size:25px}
  .pipeline-board{
    display:block;
    overflow:visible;
  }
  .stage-column{
    margin-bottom:12px;
  }
  .compact-row{
    grid-template-columns:1fr;
  }
  .table-actions{
    grid-template-columns:1fr;
  }
}


/* V6.4 teal scheme + V5 square dashboard tile layout */
:root{
  --bg:#eef4f8;
  --card:#ffffff;
  --ink:#07111f;
  --muted:#6f7b85;
  --line:#d5dee7;
  --blue:#185e78;
  --blue2:#eaf4f8;
  --green:#16824c;
  --greenBg:#e7f6ef;
  --orange:#c2410c;
  --orangeBg:#fff3e8;
  --purple:#6d28d9;
  --purpleBg:#f1edff;
  --shadow:0 7px 22px rgba(15,23,42,.05);
}
body{background:#eef4f8;color:#07111f}
.app{max-width:760px}
.login-screen{background:#eef4f8}
.login-card,.card{
  border:1px solid #d5dee7;
  border-radius:26px;
  box-shadow:0 6px 18px rgba(15,23,42,.04);
}
.app-header{
  background:#eef4f8;
  box-shadow:none;
  border:0;
  border-radius:0;
  padding:18px 0 10px;
}
.app-header .brand-kicker{color:#185e78}
.app-header h1{font-size:32px;letter-spacing:-.045em}
.app-header p{color:#6f7b85}
.logout{
  background:#ffffff;
  color:#185e78;
  border:1px solid #d5dee7;
  border-radius:20px;
  font-weight:950;
}
.tabs{
  position:sticky;
  top:0;
  z-index:20;
  background:#eef4f8;
  padding:10px 0 16px;
  gap:12px;
  border-bottom:6px solid rgba(15,23,42,.20);
  overflow-x:auto;
}
.tab{
  background:#ffffff;
  border:1px solid #d5dee7;
  border-radius:999px;
  color:#124b60;
  font-size:18px;
  padding:16px 24px;
  font-weight:950;
}
.tab.active{background:#185e78;border-color:#185e78;color:white}
.page-hero{
  background:transparent;
  color:#07111f;
  box-shadow:none;
  border-radius:0;
  padding:10px 0 14px;
  margin:0;
}
.page-hero h2{color:#07111f;font-size:42px;letter-spacing:-.055em}
.page-hero p{color:#6f7b85;font-size:22px;font-weight:500}
.hero-label{display:none}
.dashboard-metrics{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:22px;
}
.metric-card{
  min-height:164px;
  padding:24px 28px;
  position:relative;
  overflow:hidden;
}
.tile-icon{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:#eaf4f8;
  color:#185e78;
  font-weight:950;
  margin-bottom:18px;
}
.metric-label{color:#6f7b85;font-size:18px;letter-spacing:.10em}
.metric-value{font-size:46px;margin-top:16px;color:#07111f}
.positive,.positive.metric-value{color:#16824c}
.dashboard-block{margin-top:24px;padding:30px 36px}
.report-panel h3,.focus-panel h3{
  color:#185e78;
  letter-spacing:.14em;
  text-transform:uppercase;
  font-size:21px;
}
.summary-row{padding:20px 0}
.summary-row span{
  font-size:18px;
  text-transform:uppercase;
  letter-spacing:.05em;
  color:#6f7b85;
}
.summary-row strong{font-size:26px}
button,.button{background:#185e78;border-radius:16px}
button.secondary,.button.secondary{background:#eaf4f8;color:#185e78;border:1px solid #c5d8e2}
button.light,.button.light{color:#185e78;border:1px solid #d5dee7}
.stage-column{background:#eaf4f8;border-color:#c5d8e2}
.stage-head{color:#185e78}
.notice{background:#eaf4f8;border-color:#c5d8e2;color:#185e78}
@media(max-width:820px){
  .app{padding:22px}
  .app-header h1{font-size:31px}
  .tabs{margin-left:-22px;margin-right:-22px;padding-left:22px;padding-right:22px}
  .tab{padding:14px 28px;font-size:18px}
  .page-hero h2{font-size:41px}
  .page-hero p{font-size:21px}
  .metric-card{min-height:162px;padding:22px 28px}
  .metric-value{font-size:45px}
}
@media(max-width:520px){
  .dashboard-metrics{gap:18px}
  .metric-card{padding:20px 22px;min-height:150px}
  .metric-label{font-size:15px}
  .metric-value{font-size:40px}
  .tile-icon{width:30px;height:30px;margin-bottom:14px}
}


/* V6.9 FINAL: sharp blue scheme + square dashboard tiles + compact centered header */
:root{
  --bg:#f6f8fb;
  --card:#ffffff;
  --ink:#111827;
  --muted:#64748b;
  --line:#e5e7eb;
  --blue:#2563eb;
  --blue2:#dbeafe;
  --green:#15803d;
  --greenBg:#dcfce7;
  --orange:#c2410c;
  --orangeBg:#ffedd5;
  --purple:#6d28d9;
  --purpleBg:#ede9fe;
  --shadow:0 10px 30px rgba(15,23,42,.08);
}
body{
  background:
    radial-gradient(circle at top left, rgba(37,99,235,.08), transparent 32rem),
    #f6f8fb;
  color:#111827;
}
.app{
  max-width:960px;
  padding:14px;
}
.login-screen{
  background:linear-gradient(180deg,#ffffff,#eef4ff);
}
.login-card{
  border:1px solid rgba(37,99,235,.18);
  box-shadow:0 18px 55px rgba(15,23,42,.12);
}
.login-card h1{
  color:#111827;
}
.login-card p{
  color:#64748b;
}
.brand-kicker{
  color:#2563eb;
}
.app-header{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:8px;
  text-align:center;
  background:#ffffff;
  border:1px solid rgba(37,99,235,.14);
  border-radius:20px;
  padding:10px 14px;
  box-shadow:0 8px 24px rgba(15,23,42,.06);
  position:relative;
}
.app-header > div{
  grid-column:2;
}
.app-header .brand-kicker{
  font-size:11px;
  letter-spacing:.18em;
}
.app-header h1{
  font-size:28px;
  line-height:1.0;
  margin:2px 0;
  letter-spacing:-.045em;
}
.app-header p{
  font-size:13px;
  margin:0;
  color:#64748b;
  font-weight:800;
}
.logout{
  grid-column:3;
  justify-self:end;
  background:#f8fafc;
  color:#0f172a;
  border:1px solid #e5e7eb;
  min-height:40px;
  padding:9px 14px;
  border-radius:14px;
  box-shadow:none;
}
.tabs{
  position:sticky;
  top:0;
  z-index:50;
  margin:10px 0 12px;
  padding:8px;
  gap:8px;
  border:1px solid rgba(37,99,235,.10);
  border-radius:18px;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(14px);
  box-shadow:0 10px 28px rgba(15,23,42,.08);
  overflow-x:auto;
}
.tab{
  background:#ffffff;
  color:#334155;
  border:1px solid #e5e7eb;
  border-radius:13px;
  padding:11px 14px;
  font-size:15px;
  font-weight:950;
  box-shadow:none;
}
.tab.active{
  background:#2563eb;
  border-color:#2563eb;
  color:#ffffff;
}
.page-hero{
  background:linear-gradient(135deg,#0f172a,#2563eb);
  color:#ffffff;
  border-radius:22px;
  padding:20px;
  margin:8px 0 16px;
  box-shadow:0 14px 36px rgba(15,23,42,.12);
}
.page-hero h2{
  color:#ffffff;
  font-size:32px;
  margin:4px 0 5px;
  letter-spacing:-.04em;
}
.page-hero p{
  color:#dbeafe;
  font-size:16px;
  font-weight:700;
}
.hero-label{
  display:block;
  color:#bfdbfe;
}
.dashboard-metrics{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.metric-card{
  min-height:132px;
  padding:18px 20px;
  border-radius:22px;
  position:relative;
}
.tile-icon{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:#dbeafe;
  color:#1d4ed8;
  font-weight:950;
  margin-bottom:10px;
}
.metric-label{
  color:#64748b;
  font-size:13px;
  letter-spacing:.08em;
}
.metric-value{
  font-size:34px;
  margin-top:8px;
  color:#111827;
}
.positive,
.positive.metric-value{
  color:#15803d;
}
.dashboard-block{
  margin-top:16px;
  padding:22px 24px;
}
.report-panel h3,
.focus-panel h3{
  color:#1d4ed8;
  letter-spacing:.10em;
  text-transform:uppercase;
  font-size:17px;
}
.summary-row{
  padding:13px 0;
}
.summary-row span{
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:#64748b;
}
.summary-row strong{
  font-size:20px;
}
button,.button{
  background:#2563eb;
  border-radius:14px;
  box-shadow:none;
}
button.secondary,.button.secondary{
  background:#eef4ff;
  color:#1d4ed8;
  border:1px solid #dbeafe;
}
button.light,.button.light{
  background:#ffffff;
  color:#1d4ed8;
  border:1px solid #dbeafe;
}
.stage-column{
  background:#eef4ff;
  border-color:#dbeafe;
}
.stage-head{
  color:#1d4ed8;
}
.notice{
  background:#eff6ff;
  border-color:#bfdbfe;
  color:#1e3a8a;
}
.app-footer{
  border-top:1px solid #e5e7eb;
  margin-top:18px;
  color:#64748b;
}
@media(max-width:820px){
  .app{
    padding:12px;
  }
  .app-header{
    grid-template-columns:1fr;
    padding:9px 10px;
  }
  .app-header > div{
    grid-column:1;
  }
  .logout{
    grid-column:1;
    justify-self:center;
    margin-top:5px;
    min-height:36px;
    padding:7px 12px;
    font-size:13px;
  }
  .app-header h1{
    font-size:25px;
  }
  .app-header p{
    font-size:12px;
  }
  .tabs{
    padding:7px;
    margin:8px 0 10px;
  }
  .tab{
    padding:10px 12px;
    font-size:14px;
  }
  .page-hero{
    padding:16px;
    border-radius:20px;
  }
  .page-hero h2{
    font-size:29px;
  }
  .dashboard-metrics{
    gap:12px;
  }
  .metric-card{
    min-height:118px;
    padding:15px 16px;
  }
  .tile-icon{
    width:27px;
    height:27px;
    margin-bottom:8px;
  }
  .metric-label{
    font-size:11px;
  }
  .metric-value{
    font-size:29px;
  }
}


/* V6.9.1 visibility/archive controls */
.soldbadge{background:#fee2e2;color:#991b1b;}
.lowbadge{background:#f1f5f9;color:#475569;}
.admin-row .actions{display:flex;flex-wrap:wrap;gap:10px;}
.admin-row .actions button{min-width:210px;}


/* Watch List admin star controls */
.star-btn{
  font-weight:950;
}
.star-btn.starred{
  background:#fff7ed;
  color:#c2410c;
  border-color:#fed7aa;
}


/* 3-star tier selector */
.star-selector{
  display:flex;
  align-items:center;
  gap:4px;
  flex-wrap:wrap;
}
.star-option{
  min-height:36px;
  width:36px;
  padding:0;
  border-radius:10px;
  background:#f8fafc;
  color:#94a3b8;
  border:1px solid #e5e7eb;
  box-shadow:none;
  font-size:18px;
  line-height:1;
}
.star-option.active-star{
  background:#fff7ed;
  color:#c2410c;
  border-color:#fed7aa;
}
.star-tier-label{
  margin-left:4px;
  font-size:12px;
  font-weight:950;
  color:#475569;
  white-space:nowrap;
}
.table-actions .star-selector{
  min-width:150px;
}


/* Function check patch */
.import-label{
  cursor:pointer;
}


/* Investor Intelligence */
#intelligence .compact-row{
  grid-template-columns:1fr auto auto;
}
@media(max-width:620px){
  #intelligence .compact-row{
    grid-template-columns:1fr;
  }
}


/* Investor Intelligence 2.0 */
.intel-table{
  display:grid;
  gap:10px;
}
.intel-row{
  display:grid;
  grid-template-columns:1.2fr .8fr .7fr .5fr auto;
  gap:10px;
  align-items:center;
  padding:12px;
  background:#f8fafc;
  border:1px solid var(--line);
  border-radius:16px;
}
.intel-row span{
  display:block;
  color:#64748b;
  font-size:11px;
  font-weight:950;
  text-transform:uppercase;
}
.intel-row strong{
  font-weight:950;
}
@media(max-width:820px){
  .intel-row{
    grid-template-columns:1fr;
  }
}


/* Land Value Intelligence */
.lvi-panel{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin:12px 0;
}
.lvi-panel div{
  background:#f8fafc;
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px;
}
.lvi-panel span{
  display:block;
  color:#64748b;
  font-size:11px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.lvi-panel strong{
  display:block;
  margin-top:5px;
  font-size:16px;
}
.lvi-note{
  background:#eff6ff;
  border:1px solid #bfdbfe;
  padding:10px 12px;
  border-radius:14px;
}
@media(max-width:720px){
  .lvi-panel{
    grid-template-columns:1fr;
  }
}


/* v7.3 — Toast notification */
#toast{
  position:fixed;
  bottom:28px;
  left:50%;
  transform:translateX(-50%) translateY(20px);
  background:#111827;
  color:#fff;
  padding:12px 20px;
  border-radius:14px;
  font-size:14px;
  font-weight:700;
  opacity:0;
  pointer-events:none;
  transition:opacity .22s, transform .22s;
  z-index:9999;
  white-space:nowrap;
  box-shadow:0 8px 24px rgba(15,23,42,.22);
}
#toast.toast-show{
  opacity:1;
  transform:translateX(-50%) translateY(0);
}


/* V7.4 Records tier selector column */
.records-table-head,
.records-table-row{
  grid-template-columns:.75fr 1.35fr .7fr 1fr 1.6fr;
}
.tier-cell{
  display:flex;
  align-items:center;
}
.tier-cell .star-selector{
  justify-content:flex-start;
}
@media(min-width:1100px){
  .records-table-head,
  .records-table-row{
    grid-template-columns:.7fr 1.45fr .7fr 1fr 1.5fr;
  }
}
@media(max-width:759px){
  .records-table-row .tier-cell{
    margin-bottom:10px;
  }
  .tier-cell .star-selector{
    justify-content:center;
  }
}

/* V7.4 pipeline: Research consolidated into Diligence */
.stage-column .stage-head strong{
  overflow-wrap:anywhere;
}


/* V7.5 Pipeline and Records layout polish */
html, body{
  overflow-x:hidden;
}
.app{
  width:100%;
  max-width:1440px;
}
#pipeline{
  width:100%;
}
.pipeline-board{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
  gap:18px;
  overflow-x:visible !important;
  width:100%;
  align-items:start;
}
.stage-column{
  min-width:0;
  border-radius:24px;
  padding:16px;
  background:#eef4ff;
  border:1px solid #dbeafe;
}
.stage-head{
  font-size:17px;
  margin-bottom:14px;
}
.stage-head strong{
  color:#1d4ed8;
  letter-spacing:.03em;
}
.pipeline-card{
  padding:18px;
  border-radius:22px;
  margin-bottom:14px;
}
.pipeline-card h3{
  font-size:20px;
  line-height:1.15;
}
.pipeline-numbers{
  grid-template-columns:1fr;
  gap:9px;
}
.pipeline-numbers div{
  padding:11px;
}
.pipeline-numbers strong{
  font-size:16px;
}

/* Records table/card sizing */
.records-table-head,
.records-table-row{
  grid-template-columns:.75fr 1.6fr .85fr 1.15fr 1.7fr;
}
.records-table-row{
  padding:16px;
  min-height:92px;
}
.records-table-row strong{
  font-size:17px;
}
.records-table-row small{
  font-size:13px;
}
.table-actions{
  gap:8px;
}
.table-actions .button,
.table-actions button{
  min-height:42px;
  padding:9px 12px;
}
.tier-cell .star-selector{
  justify-content:flex-start;
}
@media(min-width:1200px){
  .pipeline-board{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }
}
@media(min-width:1500px){
  .pipeline-board{
    grid-template-columns:repeat(4, minmax(0, 1fr));
  }
}
@media(max-width:900px){
  .pipeline-board{
    grid-template-columns:1fr;
  }
  .records-table-head{
    display:none;
  }
  .records-table-row{
    display:block;
    padding:16px;
  }
  .records-table-row > span{
    display:block;
    margin-bottom:12px;
  }
  .table-actions{
    display:grid;
    grid-template-columns:1fr;
  }
}
