/* ORE Sky — application styles.
   Reference screens measured at 1914px: navy #242a65, Segoe UI, 60px header, 15px navy bar, 1140px page container. */
/* Montserrat Bold (SIL Open Font License, see ../fonts/OFL.txt): the reference's bold labels and promo buttons */
@font-face { font-family: Montserrat; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --navy: #242a65;
  --slate: #3f5b77;
  --gold: #c8a24a;        /* ORE Sky accent: the one deliberate difference from the reference */
  --gold-deep: #8a6a14;   /* gold for small text (contrast-safe on white) */
  --gold-soft: #f6edd3;
  --gold-line: #e3cf9a;
  --link: #0f3c75;
  --line: #dddfe1;
  --line-2: #ccc;
  --grey: #808080;
  --text: #000;
  --title: #191c21;
  --bg: #fff;
  --surface: #fff;
  --surface-2: #f6f7f9;
  --muted: #667085;
  --border: #dddfe1;
  --brand: var(--navy);
  --brand-2: var(--navy);
  --ok: #0d7a4b;   --ok-bg: #e0f4ea;
  --warn: #935c00; --warn-bg: #fff2d1;
  --bad: #b3261e;  --bad-bg: #fde8e6;
  --info: #1d4ed8; --info-bg: #e5edff;
  --na: #596273;   --na-bg: #eaecf1;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05);
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-ui: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --font-mont: Montserrat, "Segoe UI", -apple-system, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 14.5px/1.5 var(--font);
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0; }
h1 { font-size: 1.6rem; letter-spacing: -.01em; }
h2 { font-size: 1.1rem; }
h3 { font-size: .98rem; }
p { margin: 0 0 .75rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.icon { flex: none; vertical-align: -3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mont { font-family: var(--font-mont); }

/* =====================================================================
   Shell: header, navy bar, footer
   ===================================================================== */
.hdr {
  position: relative; z-index: 30; height: 60px; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; padding: 0 52px 0 64px; flex: none;
}
.hdr-logo { display: flex; align-items: center; height: 100%; text-decoration: none !important; }
.hdr-logo img { display: block; width: auto; height: 30px; max-width: 100%; }
.logo-text { font: italic 600 22px/1 Georgia, "Times New Roman", serif; color: var(--navy); }
.hdr-sep { width: 1px; height: 24px; background: var(--line); margin: 11px 0 0 56px; flex: none; }
.hdr-nav { display: flex; align-items: center; padding-top: 10px; margin-left: 22px; align-self: stretch; }
.hdr-nav a { display: flex; align-items: center; gap: 19px; color: var(--navy); font-size: 14px; text-transform: uppercase; margin-right: 46px; white-space: nowrap; }
.hdr-nav a:hover { text-decoration: none; opacity: .8; }

.hdr-right { margin-left: auto; display: flex; align-items: center; padding-top: 5px; }
.hdr-btn {
  width: 52px; height: 40px; display: grid; place-items: center; background: none; border: 0; padding: 0; cursor: pointer;
}
.hdr-btn svg { position: relative; top: 3px; }
.hdr-btn:hover svg * { stroke: #9a9ca0; } .hdr-btn:hover svg [fill="#c2c3c5"] { fill: #9a9ca0; }
.hdr-div { width: 1px; height: 17px; background: #ddd5d4; margin: 3px 19px 0 21px; }
.hdr-apps, .hdr-user { display: flex; align-items: center; background: none; border: 0; cursor: pointer; font: 15px/1 var(--font); padding: 0; }
.hdr-apps { color: var(--slate); gap: 13px; margin-right: 24px; }
.hdr-name { color: var(--navy); margin-right: 11px; }
.avatar-o { width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font: 700 16px/1 var(--font); }
.hdr-search {
  position: absolute; right: 52px; top: 60px; z-index: 40; display: flex; gap: 8px; padding: 10px; background: #fff;
  border: 1px solid var(--line); border-top: 0; box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}
.hdr-search[hidden] { display: none; }
.hdr-search input { width: 320px; }
.navy-bar { height: 15px; background: var(--navy); border-bottom: 3px solid var(--gold); flex: none; }

.main-bare { flex: 1 0 auto; }
.content { flex: 1 0 auto; padding: 24px; max-width: 1360px; width: 100%; margin: 0 auto; }
.flashes { padding: 16px 24px 0; max-width: 1360px; width: 100%; margin: 0 auto; }

.foot { flex: none; border-top: 3px solid var(--gold); height: 53px; display: flex; align-items: center; justify-content: space-between; padding: 0 11px 0 9px; font-size: 12.5px; color: var(--navy); }
.foot a { color: var(--navy); margin-left: 14px; }
.foot-bar { margin: 0 0 0 14px; }
.heart { color: var(--navy); }
.foot-r { display: flex; align-items: center; gap: 14px; }
.foot-r a { margin: 0; display: grid; }

/* dropdowns (Apps, user, support, filters) */
.dd { position: relative; display: inline-block; }
.dd-menu {
  display: none; position: absolute; left: 0; top: calc(100% + 6px); z-index: 50; min-width: 180px; background: #fff;
  border: 1px solid var(--line-2); border-radius: 4px; box-shadow: 0 8px 24px rgba(0, 0, 0, .16); padding: 6px 0;
}
.dd.open > .dd-menu { display: block; }
.dd-right { left: auto; right: 0; }
.dd-menu a, .dd-menu button { display: block; width: 100%; text-align: left; padding: 8px 16px; color: #212529; background: none; border: 0; font: 14px var(--font); cursor: pointer; white-space: nowrap; }
.dd-menu a:hover, .dd-menu button:hover { background: #f1f2f6; text-decoration: none; }
.dd-menu a.on { color: var(--navy); font-weight: 700; }
.apps-menu { min-width: 250px; padding: 8px; }
.apps-menu a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 4px; }
.apps-ic { width: 34px; display: grid; place-items: center; }
.apps-ic .tile-svg { max-height: 28px; max-width: 30px; width: auto; height: auto; }
.user-menu { min-width: 240px; }
.um-head { padding: 8px 16px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.um-head b { display: block; } .um-head small { color: var(--muted); }
.support-pop { min-width: 260px; padding: 14px 16px; white-space: normal; }
.support-pop p { color: var(--muted); font-size: 13px; margin: 4px 0 10px; }
.support-pop a { padding: 4px 0; }
.support-pop small { display: block; margin-top: 10px; color: var(--muted); }
.caret { display: inline-block; margin-left: 8px; vertical-align: middle; border-top: 5px solid #212529; border-left: 4.5px solid transparent; border-right: 4.5px solid transparent; }

/* =====================================================================
   Reference screens: dashboard
   ===================================================================== */
.kpi-strip { display: grid; grid-template-columns: repeat(6, 1fr); height: 111px; padding-top: 20px; border-bottom: 1px solid #d4d6d8; }
.kpi-cell { position: relative; height: 90px; text-align: center; }
.kpi-cell:not(:last-child)::after { content: ""; position: absolute; right: 8px; top: 0; bottom: 0; width: 1px; background: #d4d6d8; }
.kpi-num { font: 700 30px/21px var(--font); color: var(--navy); }
.kpi-label { margin-top: 16px; font-size: 16px; line-height: 22px; color: #000; }

.home { display: flex; gap: 128px; width: 1408px; max-width: calc(100% - 40px); margin: 0 auto; padding: 72px 0 70px; }
.home-promo { flex: none; width: 300px; margin-top: 6px; }
.promo-banner { height: 56px; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; gap: 12px; }
.pb-t { display: flex; flex-direction: column; line-height: 1; }
.pb-t small { font-size: 10px; letter-spacing: .28em; font-weight: 600; margin-bottom: 3px; }
.pb-t b { font-size: 27px; font-weight: 600; letter-spacing: .03em; }
.promo-tag { max-width: 200px; margin: 16px auto; font: 700 16.5px/25px var(--font); color: var(--slate); text-align: center; }
.promo-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 260px; height: 40px; margin: 0 auto 16px;
  border-radius: 20px; background: var(--navy); color: #fff; font: 700 14.4px/1 var(--font-mont); text-decoration: none !important;
}
.promo-btn:hover { background: #1b2050; }
.tiles { display: grid; grid-template-columns: repeat(5, 196px); grid-auto-rows: 162px; }
.tile { display: flex; flex-direction: column; align-items: center; color: var(--grey); text-decoration: none !important; }
.tile-ic { height: 64px; display: flex; align-items: flex-start; justify-content: center; }
.tile-svg { display: block; }
.tile-label { margin-top: 14px; font-size: 14.4px; line-height: 15.5px; text-align: center; }
.tile:hover .tile-label { color: var(--navy); }
.office-pick { display: flex; flex-direction: column; align-items: center; padding-top: 5px; }
.office-pick label { font-size: 13px; line-height: 15px; color: var(--grey); margin: 0 0 11px; font-weight: 400; }
.office-pick select { width: 124px; height: 35px; min-height: 0; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 2px; background: #fff; font: 14px var(--font-ui); color: #000; }

/* =====================================================================
   Reference screens: list pages (Incomplete Checklist, Documents Waiting, Working Documents)
   ===================================================================== */
.wrap { width: 1140px; max-width: calc(100% - 40px); margin: 0 auto; padding: 28px 0 60px; }
.ref-title { margin: 0 0 18px; font-size: 28.8px; line-height: 1.2; font-weight: 300; letter-spacing: 0; color: var(--title); }
.ref-h2 { margin: 0 0 11px; font-size: 28.8px; line-height: 1.2; font-weight: 300; color: var(--title); }
.ref-section { margin-top: 45px; }
.ref-section.first { margin-top: 0; }
.soon { font-size: 16px; color: #000; margin: 24px 0; }

.toolbar { display: flex; justify-content: flex-end; align-items: flex-start; gap: 0; height: 36px; }
.sort-group { display: flex; margin-right: 5px; }
.sort-btn { width: 56.5px; height: 36px; display: grid; place-items: center; background: #fff; border: 1px solid #cfd1d4; cursor: pointer; padding: 0; }
.sort-btn + .sort-btn { border-left: 0; }
.sort-btn:first-child { border-radius: 3px 0 0 3px; } .sort-btn:last-child { border-radius: 0 3px 3px 0; }
.sort-btn:hover, .sort-btn.on { background: #e9ecef; }
.ref-select {
  width: 215px; height: 36px; min-height: 0; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 3px; background: #fff;
  font: 14px var(--font-ui); color: #000; margin-right: 10px;
}
.toolbar .ref-select:last-child { margin-right: 0; }
.filters-row { display: flex; gap: 8px; height: 35px; margin-top: 0; }
.ref-btn {
  display: inline-flex; align-items: center; justify-content: center; height: 35px; padding: 0 17px; background: #fff; border: 1px solid var(--line-2);
  border-radius: 3px; color: #000; font: 14px var(--font-ui); cursor: pointer; white-space: nowrap; text-decoration: none !important;
}
.ref-btn:hover { background: #f1f2f4; }
.ref-btn[disabled] { opacity: .55; cursor: not-allowed; }
.ref-btn.sm { height: 30px; padding: 0 12px; font-size: 13px; }
.ref-btn.danger { color: var(--bad); }
.ref-btn.wide { width: 100%; list-style: none; }
.ref-btn-navy {
  display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 20px; background: var(--navy); border: 1px solid var(--navy);
  border-radius: 3px; color: #fff; font: 14px var(--font-ui); cursor: pointer; white-space: nowrap; text-decoration: none !important;
}
.ref-btn-navy:hover { background: #1b2050; }
.ref-btn-navy.sm { height: 30px; padding: 0 14px; font-size: 13px; }

.ref-table { width: 100%; table-layout: fixed; border-collapse: collapse; margin-top: 21px; border-top: 1px solid var(--line); }
.ref-table th { height: 30px; padding: 0 12px; text-align: left; font: 700 14px/1.2 var(--font-ui); color: #373e4a; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ref-table td { padding: 12px; font-size: 14px; color: #000; border-bottom: 1px solid var(--line); vertical-align: middle; overflow-wrap: anywhere; }
.ref-table td.empty { height: 53px; padding: 0 12px; text-align: center; font-size: 14.4px; }
.ref-table tbody tr:not(:has(.empty)):hover { background: #f8f9fa; }
.ref-table .fn { color: var(--link); font-weight: 600; }
.cnt { display: inline-block; min-width: 26px; padding: 1px 8px; border-radius: 99px; background: #eceef7; color: var(--navy); font-weight: 700; text-align: center; font-size: 13px; }
.cnt-names { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.filters-row + .ref-table { margin-top: 21px; }

/* working documents */
.wd { padding-top: 20px; }
.wtabs { display: flex; border-bottom: 1px solid #ddd; height: 49px; }
.wtab { display: flex; align-items: center; height: 48px; padding: 0 23px; font-size: 14px; text-transform: uppercase; color: #77828c; text-decoration: none !important; }
.wtab.on { background: var(--navy); color: #fff; }
.wbar { display: flex; justify-content: flex-end; gap: 4px; margin-top: 12px; height: 35px; }
.wsearch { display: flex; gap: 4px; }
.wsearch-in { position: relative; width: 370px; display: flex; align-items: center; }
.wsearch-in input { width: 100%; height: 35px; min-height: 0; padding: 0 56px 0 12px; border: 1px solid var(--line-2); border-radius: 3px 0 0 3px; font: 14.4px var(--font-ui); }
.wsearch-in input::placeholder { color: #999; }
.wsearch-in .reset { position: absolute; right: 6px; font-size: 13px; color: #999; }
.wsearch-btn { height: 35px; width: 81px; margin-left: -4px; background: #fff; border: 1px solid var(--line-2); border-left: 0; border-radius: 0 3px 3px 0; font: 14.4px var(--font-ui); cursor: pointer; }
.wfolder { width: 101px; height: 35px; min-height: 0; padding: 0 6px; border: 1px solid var(--line-2); border-radius: 3px; background: #fff; font: 14.4px var(--font-ui); text-overflow: ellipsis; }
.wupload { display: flex; }
.ref-btn-navy.up { height: 35px; width: 159px; padding: 0; font: 700 12px var(--font-mont); letter-spacing: .01em; cursor: pointer; }
.wmail { display: flex; justify-content: flex-end; margin-top: 11px; }
.wmail .ref-btn { width: 72px; padding: 0; }
.wpanels { display: flex; gap: 14px; margin-top: 10px; align-items: flex-start; }
.wpanels.office { margin-top: 37px; }
.wleft { flex: none; width: 183px; }
.wpanel { border: 1px solid var(--line); border-radius: 2px; background: #fff; }
.wpanel h4 { margin: 0; padding: 0 0 11px; font: 700 13px/1 var(--font-mont); text-transform: uppercase; letter-spacing: .01em; color: #000; }
.wpanel.folders { min-height: 143px; padding: 23px 22px 14px; }
.wpanel.folders h4 { border-bottom: 1px solid #ebebeb; margin: 0 -9px 0 0; padding-bottom: 11px; }
.flist { list-style: none; margin: 0; padding: 20px 0 0; }
.flist li { margin-bottom: 11px; }
.flist a { display: flex; align-items: center; gap: 12px; color: var(--link); font-size: 14.4px; }
.flist li.on a { font-weight: 700; }
.flist svg { flex: none; }
.add-folder { margin-top: 20px; }
.add-folder > summary { list-style: none; cursor: pointer; }
.add-folder > summary::-webkit-details-marker { display: none; }
.add-folder summary b { font-size: 17px; margin-right: 4px; font-weight: 800; }
.add-folder.manage { margin-top: 10px; }
.inline-form { display: flex; gap: 6px; margin-top: 8px; }
.inline-form input[type=text] { flex: 1; min-width: 0; height: 30px; min-height: 0; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 3px; font: 13px var(--font-ui); }
.wpanel.docs { flex: 1; min-width: 0; padding: 23px 22px 41px; min-height: 191px; }
.wpanel.docs h4 { border-bottom: 1px solid #ebebeb; padding-bottom: 11px; }
.wtable { width: 100%; table-layout: fixed; border-collapse: collapse; }
.wtable th { height: 48px; text-align: left; font: 700 14px var(--font-mont); color: #000; border-bottom: 1px solid var(--line); padding: 0; }
.wtable td { padding: 11px 0; font-size: 14px; border-bottom: 1px solid var(--line); vertical-align: middle; overflow-wrap: anywhere; }
.wtable .cb { padding-left: 9px; }
.wtable td.empty { height: 53px; text-align: center; font-size: 13px; padding: 0; }
.wtable input[type=checkbox] { width: 17px; height: 17px; margin: 0; vertical-align: middle; }
.wtable th.cb input { position: relative; top: 3px; }
.wtable .dn a { color: var(--link); font-weight: 600; }
.wtable .sub { color: var(--muted); font-size: 12px; }
.bulk { display: flex; align-items: center; gap: 8px; margin: 10px 0; padding: 8px 10px; background: #f3f4f8; border-radius: 3px; flex-wrap: wrap; }
.bulk[hidden] { display: none; }
.bulk select { height: 30px; min-height: 0; width: auto; border: 1px solid var(--line-2); border-radius: 3px; font: 13px var(--font-ui); }

/* =====================================================================
   Shared controls and components used by the other screens
   ===================================================================== */
label { display: block; font-weight: 600; font-size: .82rem; margin-bottom: 5px; color: var(--text); }
label .hint { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date], input[type=number], input[type=search], select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line-2); border-radius: 3px; background: #fff; color: var(--text); font: inherit; min-height: 38px;
}
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible, summary:focus-visible, .btn:focus-visible {
  outline: 2px solid #5b6fd6; outline-offset: 1px;
}
input[type=file] { font: inherit; max-width: 100%; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 15px; border-radius: 3px;
  border: 1px solid var(--line-2); background: #fff; color: var(--text); font: inherit; font-weight: 600; cursor: pointer;
  min-height: 38px; text-decoration: none !important; white-space: nowrap;
}
.btn:hover { background: #f1f2f4; }
.btn-primary, .btn-gold { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-primary:hover, .btn-gold:hover { background: #1b2050; }
.btn-danger { color: var(--bad); }
.btn-danger:hover { background: var(--bad-bg); }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-ok:hover { background: var(--ok); filter: brightness(.92); }
.btn-bad { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn-bad:hover { background: var(--bad); filter: brightness(.92); }
.btn-sm { padding: 4px 10px; min-height: 30px; font-size: .84rem; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn[disabled] { opacity: .5; pointer-events: none; }
form.inline { display: inline; }

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { font-weight: 300; font-size: 28px; color: var(--title); }
.page-head p { margin: 4px 0 0; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 6px; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.card-b { padding: 18px; }
.card + .card { margin-top: 18px; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
.form-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.c12 { grid-column: span 12; } .c8 { grid-column: span 8; } .c6 { grid-column: span 6; } .c4 { grid-column: span 4; } .c3 { grid-column: span 3; } .c2 { grid-column: span 2; }
.section-title { font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 6px 0 -2px; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }

.flash { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border-radius: 3px; margin-bottom: 8px; border: 1px solid; }
.flash.success { background: var(--ok-bg); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.flash.error { background: var(--bad-bg); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
.flash.info { background: var(--info-bg); color: var(--info); border-color: color-mix(in srgb, var(--info) 35%, transparent); }
.flash button { margin-left: auto; background: none; border: 0; color: inherit; cursor: pointer; padding: 0; }

.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; }
.t th { text-align: left; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.t td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr:hover { background: var(--surface-2); }
.t .addr { font-weight: 600; color: var(--text); }
.t .sub { color: var(--muted); font-size: .84rem; }
.empty { text-align: center; padding: 42px 20px; color: var(--muted); }
.empty .icon { color: var(--navy); margin-bottom: 8px; }
.empty h3 { color: var(--text); margin-bottom: 4px; }

.pill { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 99px; font-size: .76rem; font-weight: 700; white-space: nowrap; background: var(--na-bg); color: var(--na); }
.st-active, .st-accepted { background: var(--ok-bg); color: var(--ok); }
.st-pending { background: var(--warn-bg); color: var(--warn); }
.st-rejected { background: var(--bad-bg); color: var(--bad); }
.st-missing { background: var(--info-bg); color: var(--info); }
.st-na { background: var(--na-bg); color: var(--na); }
.type-tag { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--navy); }
.progress { display: inline-block; width: 90px; height: 8px; border-radius: 99px; background: var(--na-bg); overflow: hidden; vertical-align: middle; }
.progress span { display: block; height: 100%; border-radius: 99px; background: var(--ok); }
.progress.mid span { background: #e0a100; }
.progress.low span { background: var(--bad); }
.progress-num { font-size: .8rem; font-weight: 600; margin-left: 8px; color: var(--muted); }

.file-head { padding: 18px 20px; }
.file-head-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.file-title { font-size: 1.5rem; font-weight: 300; letter-spacing: -.01em; color: var(--title); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 14px; }
.fact-l { font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.fact-v { font-weight: 600; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 18px 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 10px 16px; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.active { color: var(--navy); border-bottom-color: var(--navy); }
.tabs .count { background: var(--na-bg); color: var(--na); border-radius: 99px; padding: 0 7px; font-size: .74rem; margin-left: 6px; }
.tabs .count.warn { background: var(--warn-bg); color: var(--warn); }
.tabs .count.bad { background: var(--bad-bg); color: var(--bad); }

.group-h { padding: 8px 18px; background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.item { padding: 14px 18px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; }
.item:target { background: #eef0fb; }
.item-name { font-weight: 600; }
.item-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 3px; }
.req-tag { font-size: .74rem; color: var(--muted); }
.item-actions { display: flex; gap: 6px; align-items: flex-start; flex-wrap: wrap; justify-content: flex-end; }
.item-docs { grid-column: 1 / -1; display: grid; gap: 6px; }
.doc-row { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface-2); flex-wrap: wrap; }
.doc-row .name { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.doc-row .meta { color: var(--muted); font-size: .8rem; }
.doc-row .spacer { flex: 1; }
.comment { border-left: 3px solid var(--line); padding: 4px 0 4px 10px; font-size: .88rem; }
.comment.reject { border-color: var(--bad); }
.comment.accept { border-color: var(--ok); }
.comment b { font-weight: 600; }
.comment .when { color: var(--muted); font-size: .78rem; }
.item-comments { grid-column: 1 / -1; display: grid; gap: 6px; }
details.mini > summary { cursor: pointer; color: var(--link); font-weight: 600; font-size: .85rem; list-style: none; }
details.mini > summary::-webkit-details-marker { display: none; }
details.mini[open] > summary { margin-bottom: 8px; }
.item-form { grid-column: 1 / -1; }
.upload-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dropzone { border: 2px dashed var(--line-2); border-radius: var(--radius); padding: 22px; text-align: center; background: var(--surface-2); transition: .15s; }
.dropzone.drag { border-color: var(--navy); background: #eef0fb; }

.audit { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 18px; align-items: start; }
.audit-list { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
.audit-item { display: block; padding: 11px 16px; border-bottom: 1px solid var(--line); color: var(--text); border-left: 3px solid transparent; }
.audit-item:hover { background: var(--surface-2); text-decoration: none; }
.audit-item.sel { background: #eef0fb; border-left-color: var(--navy); }
.audit-item .n { font-weight: 600; display: block; }
.audit-item .m { display: flex; gap: 8px; align-items: center; margin-top: 3px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.preview { width: 100%; height: min(72vh, 820px); border: 1px solid var(--line); border-radius: 3px; background: var(--surface-2); }
.preview-img { max-width: 100%; max-height: 72vh; display: block; margin: 0 auto; border-radius: 3px; }
.doc-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.doc-tabs a { padding: 4px 11px; border: 1px solid var(--line); border-radius: 99px; font-size: .84rem; color: var(--text); background: #fff; }
.doc-tabs a.sel { background: var(--navy); border-color: var(--navy); color: #fff; text-decoration: none; }
.review-bar { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 14px 18px; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; }
.timeline .when { color: var(--muted); font-size: .82rem; }
.timeline .act { font-weight: 600; }
.timeline .who { color: var(--muted); font-size: .82rem; }

.pager { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 12px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.filters > div { min-width: 140px; }
.filters .grow { flex: 1; min-width: 200px; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 3px; overflow: hidden; background: #fff; }
.seg a { padding: 7px 14px; color: var(--muted); font-weight: 600; border-right: 1px solid var(--line-2); }
.seg a:last-child { border-right: 0; }
.seg a.active { background: var(--navy); color: #fff; }
.seg a:hover { text-decoration: none; }
.seg .count { opacity: .8; margin-left: 4px; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: flex; gap: 8px; align-items: center; padding: 3px 0; }
.ok-i { color: var(--ok); } .bad-i { color: var(--bad); }
.suggest { position: absolute; z-index: 30; background: #fff; border: 1px solid var(--line-2); border-radius: 4px; box-shadow: 0 8px 24px rgba(0,0,0,.18); width: 100%; margin-top: 2px; overflow: hidden; }
.suggest button { display: block; width: 100%; text-align: left; padding: 8px 12px; border: 0; background: transparent; color: var(--text); font: inherit; cursor: pointer; }
.suggest button:hover { background: var(--surface-2); }
.rel { position: relative; }
.bar-chart { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; align-items: end; height: 170px; padding: 8px 18px 0; }
.bar-col { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 4px; }
.bar-col .bar { width: 100%; height: auto; background: var(--navy); border-radius: 3px 3px 0 0; min-height: 2px; flex: none; }
.bar-n { font-size: .74rem; font-weight: 700; color: var(--muted); }
.bar-l { font-size: .7rem; color: var(--muted); padding-bottom: 8px; }

/* auth + install pages */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #f4f5f9; }
.auth-card { width: 100%; max-width: 420px; padding: 30px; border-top: 5px solid var(--navy); background: #fff linear-gradient(var(--gold), var(--gold)) 0 0 / 100% 3px no-repeat; }
.auth-card .muted.small { text-align: center; }
.auth-card.wide { max-width: 720px; }
.auth-brand { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; margin: 8px 0 24px; }
.auth-brand > div { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.auth-brand img { display: block; width: auto; height: 28px; max-width: 100%; }
.auth-brand b { font-size: 1.15rem; display: block; font-weight: 600; color: var(--navy); }
.brand-mark { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font: 700 20px var(--font); }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1500px) {
  .home { gap: 60px; width: 1200px; }
  .tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 1250px) {
  .home { flex-direction: column; align-items: center; gap: 36px; padding-top: 40px; }
  .home-promo { margin-top: 0; }
  .tiles { width: 100%; max-width: 760px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) { .g-main, .audit { grid-template-columns: minmax(0, 1fr); } .audit-list { position: static; max-height: none; } }
@media (max-width: 900px) {
  .hdr { padding: 0 14px; }
  .hdr-logo img { height: 26px; }
  .hdr-sep { margin-left: 18px; }
  .hdr-nav { margin-left: 8px; }
  .hdr-nav a { margin-right: 18px; } .hdr-nav a span { display: none; }
  .hdr-name { display: none; }
  .hdr-btn { width: 40px; }
  .hdr-div { margin: 3px 10px 0 8px; }
  .hdr-apps { margin-right: 14px; }
  .kpi-strip { grid-template-columns: repeat(3, 1fr); height: auto; padding-top: 14px; }
  .kpi-cell { height: auto; padding: 0 6px 16px; } .kpi-cell::after { display: none; }
  .kpi-label { font-size: 14px; line-height: 18px; margin-top: 8px; }
  .content { padding: 16px 14px; } .flashes { padding: 12px 14px 0; }
  .g2, .g3 { grid-template-columns: minmax(0, 1fr); }
  .c8, .c6, .c4, .c3, .c2 { grid-column: span 12; }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .item { grid-template-columns: minmax(0, 1fr); } .item-actions { justify-content: flex-start; }
  .wrap { padding-top: 20px; overflow-x: auto; }
  .ref-table { min-width: 720px; }
  .wbar { flex-wrap: wrap; justify-content: flex-start; height: auto; }
  .wsearch { flex-wrap: wrap; } .wsearch-in { width: 100%; max-width: 370px; }
  .wpanels { flex-direction: column; } .wleft { width: 100%; }
  .wtable { min-width: 600px; } .wtable col:first-child { width: 40px; } .wpanel.docs { overflow-x: auto; }
  .toolbar { flex-wrap: wrap; height: auto; row-gap: 8px; }
  .filters-row { flex-wrap: wrap; height: auto; margin-top: 8px; }
}
@media (max-width: 640px) {
  .kpi-strip { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home { width: 100%; max-width: 100%; padding-left: 14px; padding-right: 14px; }
  .home-promo { width: 100%; max-width: 300px; }
  .ref-title, .ref-h2 { font-size: 24px; }
  .hdr-btn[data-print] { display: none; }
  .hdr-sep, .hdr-nav { display: none; }
  .hdr-logo img { height: 21px; }
  .foot { font-size: 11.5px; height: auto; min-height: 50px; padding: 8px 10px; gap: 8px; flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .hdr { padding: 0 10px; }
  .hdr-right .dd:has(.support-pop) { display: none; }
  .hdr-div { margin: 3px 8px 0 4px; }
}
@media print {
  .hdr, .navy-bar, .foot, .toolbar, .filters-row, .page-actions, .tabs, .btn, .wbar, .wmail, .wleft { display: none !important; }
  body { background: #fff; display: block; }
}

/* =====================================================================
   ORE Sky gold accent. Geometry is untouched; gold is decoration only (inset shadows, thin rules, badges).
   ===================================================================== */
.kpi-cell::before { content: ""; position: absolute; left: 50%; top: 27px; width: 26px; height: 2px; margin-left: -13px; background: var(--gold); border-radius: 2px; }
.promo-banner { box-shadow: inset 0 -3px 0 var(--gold); }
.pb-t small { color: var(--gold); }
.promo-btn, .ref-btn-navy, .btn-primary, .btn-gold { box-shadow: inset 0 -3px 0 var(--gold); }
.promo-btn:hover, .ref-btn-navy:hover, .btn-primary:hover, .btn-gold:hover { box-shadow: inset 0 -3px 0 var(--gold), inset 0 0 0 1px var(--gold); }
.wtab.on { box-shadow: inset 0 3px 0 var(--gold); }
.avatar-o { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--gold); }
.tile:hover .tile-label { color: var(--gold-deep); }
.cnt { background: var(--gold-soft); color: var(--gold-deep); }
.sort-btn.on { background: var(--gold-soft); border-color: var(--gold-line); }
.ref-btn.filtered { background: var(--gold-soft); border-color: var(--gold); }
.dd-menu a.on { color: var(--gold-deep); box-shadow: inset 3px 0 0 var(--gold); }
.hdr-nav a:hover span { color: var(--gold-deep); }
.tabs a.active { border-bottom-color: var(--gold); }
.seg a.active { box-shadow: inset 0 -3px 0 var(--gold); }
.item:target, .audit-item.sel { background: var(--gold-soft); }
.audit-item.sel { border-left-color: var(--gold); }
.doc-tabs a.sel { box-shadow: inset 0 -2px 0 var(--gold); }
.dropzone.drag { border-color: var(--gold); background: var(--gold-soft); }
.review-bar { border-top: 2px solid var(--gold-line); }
input[type=checkbox], input[type=radio] { accent-color: var(--navy); }

/* waiting-work badges: dashboard tiles + the header link (hidden when the count is zero) */
.tile-ic { position: relative; }
.tile-badge {
  position: absolute; top: -8px; left: calc(50% + 14px); min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  background: var(--gold); color: #1d1704; font: 700 12px/22px var(--font); text-align: center; box-shadow: 0 0 0 2px #fff;
}
.nav-badge { margin-left: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--gold); color: #1d1704; font: 700 11px/18px var(--font); text-align: center; text-transform: none; }

/* =====================================================================
   Manage Transactions, file pages (Transaction / Contacts / Commission / Checklist / Documents / Log / Tasks / Property),
   dialogs, Create Transaction wizard.  Measured from the reference at 100% zoom (the 67%/75%/50% captures scaled back).
   ===================================================================== */
:root { --green: #00c853; --closed: #9b212c; --box: #cfd1d4; }
.caret-dn { display: inline-block; margin-left: 8px; vertical-align: middle; border-top: 4.5px solid #000; border-left: 4px solid transparent; border-right: 4px solid transparent; }
.req { color: #e5173f; font-size: 9px; position: relative; top: -2px; line-height: 0; }
.ref-btn.dis { opacity: .55; cursor: not-allowed; }
.ref-btn-green {
  display: inline-flex; align-items: center; justify-content: center; height: 35px; width: 157px; margin-top: 32px; background: var(--green);
  border: 1px solid var(--green); border-radius: 3px; color: #fff; font: 14.4px var(--font-ui); cursor: pointer; white-space: nowrap;
  text-decoration: none !important; box-shadow: inset 0 -2px 0 rgba(200, 162, 74, .9);
}
.ref-btn-green:hover { background: #00b248; }
.ref-btn-green.sm { width: auto; height: 36px; margin: 0; padding: 0 20px; font-size: 14px; }
.ref-btn-navy.danger { background: var(--bad); border-color: var(--bad); box-shadow: none; }
.ref-x { width: 26px; height: 26px; border: 0; background: none; color: #8a9099; font-size: 20px; line-height: 1; cursor: pointer; }
.ref-x:hover { color: var(--bad); }
.right-c { text-align: right; } .right-h { text-align: right !important; }
.th-i { display: inline-block; margin-left: 4px; vertical-align: -2px; cursor: help; }
.empty-box { padding: 40px 0; text-align: center; color: var(--muted); }

/* ---- Manage Transactions list ---- */
.mt { padding-top: 21px; }
.mt .ref-title { margin: 0; }
.mt-top { display: flex; justify-content: space-between; align-items: flex-start; height: 67px; }
.mt-label { margin: 4px 0 8px; font: 700 11px/13px var(--font-ui); letter-spacing: .02em; color: #000; }
.mt-row { display: flex; align-items: flex-start; height: 36px; }
.mt-search { display: flex; }
.mt-search input { width: 461px; height: 35px; min-height: 0; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 3px 0 0 3px; font: 14.4px var(--font-ui); }
.mt-sbtn { width: 81px; padding: 0; margin-left: -1px; border-radius: 0 3px 3px 0; }
.mt-showall { width: 91px; padding: 0; margin-left: 14px; }
.mt-row .toolbar { margin-left: auto; }
.mt-filters { margin-top: 5px; }
.mt-dates { margin-left: 4px; }
.mt-dates select { width: 153px; height: 35px; min-height: 0; padding: 0 8px; border: 1px solid var(--box); border-radius: 3px; font: 14.4px var(--font-ui); background: #fff; }
.mt-head { display: flex; justify-content: space-between; align-items: flex-start; height: 68px; margin-top: 21px; }
.mt-head .ref-h2 { margin: 0; }
.mt-head .toolbar { margin-top: 32px; }
.mt-head .ref-select { margin-right: 5px; }
.mt-table { table-layout: fixed; }
.mt-table th { height: 51px; padding: 5px 10px 0; vertical-align: top; line-height: 20px; white-space: normal; }
.mt-table td { height: 53px; padding: 0 10px; line-height: 20px; overflow-wrap: anywhere; }
.mt-table th.right-h { padding-right: 5px; } .mt-table td.right-c { padding-right: 5px; }
.mt-table td.empty { height: 53px; }
.mt-table .fn { color: #000; font-weight: 400; }
.mt-table .fn:hover { text-decoration: underline; }
.mt-table .pill { height: 21px; padding: 0 9px; border-radius: 3px; font: 700 11px var(--font-ui); }
.pill.st-closed { background: var(--closed); color: #fff; }
.mt-table .note-btn { width: 68px; padding: 0; }
.arch-ic { display: inline-grid; place-items: center; width: 18px; height: 21px; }
.arch-ic:hover svg { opacity: .7; }
.act-btn { width: 30px; height: 30px; border: 0; background: none; cursor: pointer; border-radius: 3px; }
.act-btn svg { fill: #373e4a; } .act-btn:hover { background: #f1f2f4; }
.approve { display: inline-block; margin-left: 10px; }

/* ---- Create Transaction wizard ---- */
.wiz { width: 466px; max-width: calc(100% - 32px); padding-top: 24px; }
.wiz-q { margin: 56px 0 30px; font: 700 18px/1.35 var(--font-mont); color: #0b1d3a; }
.wiz-lab { margin: 0 0 6px; font: 700 11px var(--font-mont); color: #0b1d3a; }
.wiz-search { position: relative; }
.wiz-search input { width: 100%; height: 42px; padding: 0 40px 0 12px; border: 1px solid #cfd3e3; border-radius: 4px; font: 14px var(--font); box-shadow: inset 0 -2px 0 var(--gold-line); }
.wiz-mag { position: absolute; right: 12px; top: 12px; color: #0b1d3a; }
.wiz-list { list-style: none; margin: 8px 0 0; padding: 0; border: 1px solid #e1e4ef; border-radius: 4px; background: #fff; }
.wiz-list li + li { border-top: 1px solid #eef0f6; }
.wiz-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 14px; color: #0b1d3a; text-decoration: none !important; }
.wiz-list a:hover { background: var(--gold-soft); }
.wiz-list a span { color: var(--muted); font-size: 12.5px; }
.wiz-back { margin-top: 26px; font-size: 13px; }
.wiz-title { margin: 56px 0 26px; font: 700 24px/1.2 var(--font-mont); color: #0b1d3a; }
.wiz-sub { margin: 0 0 6px; font: 700 15px/1.3 var(--font-mont); color: #0b1d3a; }
.wiz-note { font: 12px/1.5 var(--font-ui); margin: 0 0 18px; }
.wiz-zips { list-style: none; margin: 0; padding: 0; font: 13px/1.9 var(--font-ui); } .wiz-zips a { color: #0f3c75; word-break: break-all; } .wiz-zips a:hover { text-decoration: underline; }
.wiz-card code { background: #f1f2f4; padding: 1px 5px; border-radius: 3px; font-size: 12px; }
.wiz-drop { border: 1px dashed #cfd3e3; border-radius: 4px; background: #fafbfe; text-align: center; padding: 28px 20px 26px; }
.wiz-wand { position: relative; display: inline-block; }
.wiz-chip { display: block; margin: -8px auto 0; width: max-content; padding: 4px 14px; background: #fff; border: 1px solid #e3e5ee; border-radius: 3px; font: 11px var(--font-ui); position: relative; }
.wiz-up-t { margin-top: 14px; font: 700 12px var(--font-ui); } .wiz-up-s { font: 11px var(--font-ui); color: var(--muted); margin: 3px 0 14px; }
.wiz-pill {
  display: inline-flex; align-items: center; justify-content: center; height: 29px; padding: 0 20px; border: 1.5px solid var(--navy); border-radius: 15px;
  background: #fff; color: var(--navy); font: 700 11px var(--font-mont); cursor: pointer; box-shadow: inset 0 -2px 0 var(--gold);
}
.wiz-pill:hover { background: var(--gold-soft); } .wiz-pill.soft { background: #eceef9; border-color: #eceef9; box-shadow: none; }
.wiz-card { border: 1px solid #e3e5ee; border-radius: 4px; background: #fff; padding: 18px 18px 20px; margin-top: 18px; }
.wiz-card h3 { margin: 0 0 14px; font: 700 14px var(--font-mont); color: #0b1d3a; }
.wiz-addr { display: flex; position: relative; }
.wiz-addr input { width: 100%; height: 43px; padding: 0 44px 0 12px; border: 1px solid #e0e3ee; border-radius: 3px; font: 13px var(--font); }
.wiz-addr button { position: absolute; right: 0; top: 0; width: 44px; height: 43px; border: 0; background: none; cursor: pointer; color: #0b1d3a; }
.wiz-card.pre { padding: 0; }
.wiz-card.pre > summary { display: flex; gap: 14px; align-items: center; padding: 18px; cursor: pointer; list-style: none; font: 12px/1.5 var(--font-ui); }
.wiz-card.pre > summary::-webkit-details-marker { display: none; }
.wiz-card.pre > summary b { font: 700 14px var(--font-mont); color: #0b1d3a; }
.wiz-card.pre[open] > summary { padding-bottom: 8px; }
.wiz-card.pre > .wiz-addr { margin: 0 18px; } .wiz-skip { display: flex; justify-content: flex-end; padding: 16px 18px 18px; }
.fv-new .fv-head { height: auto; padding-bottom: 14px; }
.fv-banner { margin: 6px 0 0; padding: 10px 14px; background: var(--gold-soft); border: 1px solid var(--gold-line); border-radius: 3px; font-size: 13px; }

/* ---- file page shell ---- */
.wrap.fv { padding-top: 0; }
.fv-head { display: flex; justify-content: space-between; align-items: flex-start; height: 127px; padding-top: 40px; }
.fv-titlebox { padding-top: 2px; min-width: 0; }
.fv-title { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.fv-title h1 { margin: 0; font: 300 24px/30px var(--font); letter-spacing: 0; color: var(--title); overflow-wrap: anywhere; }
.fv-title .pill { height: 21px; padding: 0 9px; border-radius: 3px; font: 700 11px var(--font-ui); position: relative; top: 3px; }
.fv-sub { margin-top: -1px; font: 13px/18px var(--font-ui); color: #000; }
.fv-btns { display: flex; gap: 8px; align-items: flex-start; }
.fv-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 35px; padding: 0 16px; background: #fff; border: 1px solid var(--line-2); border-radius: 3px;
  font: 14px var(--font-ui); color: #000; cursor: pointer; white-space: nowrap; text-decoration: none !important;
}
.fv-btn.fv-forms { color: #0f3c75; cursor: default; }
.fv-actions { width: 198px; justify-content: space-between; }
.fv-menu { min-width: 199px; padding: 4px 0; }
.fv-menu a, .fv-menu button { display: flex; align-items: center; gap: 12px; padding: 11px 16px; font: 14px var(--font-ui); }
.fv-menu form { margin: 0; }
.fv-menu .mi { width: 16px; display: grid; place-items: center; }
.fv-menu a + a, .fv-menu form + a, .fv-menu a + form, .fv-menu form + form { border-top: 1px solid #eceef0; }
.fv-tabs { display: flex; height: 48px; border-bottom: 1px solid var(--box); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.fv-tabs::-webkit-scrollbar { display: none; }
.fv-tabs a { display: flex; align-items: center; height: 47px; padding: 0 20px; font: 12.6px var(--font-ui); color: #77828c; white-space: nowrap; text-decoration: none !important; }
.fv-tabs a:hover:not(.on) { color: var(--navy); }
.fv-tabs a.on { background: var(--navy); color: #fff; box-shadow: inset 0 3px 0 var(--gold); }
.fv-band { display: grid; grid-template-columns: 303px 183px 274px 183px 1fr; grid-template-rows: 61px 61px 60px; grid-auto-rows: 61px; border-bottom: 1px solid var(--box); }
.fv-c { padding-top: 15px; min-width: 0; }
.fv-c.c1 { padding-left: 21px; }
.fv-l { font: 700 11px/13px var(--font-ui); letter-spacing: .02em; text-transform: uppercase; color: #000; }
.fv-v { margin-top: 9px; font: 13px/16px var(--font-ui); color: #000; overflow-wrap: anywhere; }
.fv-mail { color: #0f3c75; } .copy-ic, .rv-edit { border: 0; background: none; padding: 0 2px; cursor: pointer; vertical-align: -1px; }
.rv-form { display: flex; gap: 6px; margin-top: 6px; } .rv-form[hidden] { display: none; }
.rv-form select { height: 30px; min-height: 0; padding: 0 6px; font: 13px var(--font-ui); }
.fv-links { padding: 8px 21px 0; }
.fv-body { padding-bottom: 8px; }
.fv-cancel-row { display: flex; justify-content: flex-end; margin-top: 8px; }

/* form grid (Transaction, Commission, Property) */
.fv-form { display: grid; grid-template-columns: 509px minmax(0, 1fr); column-gap: 116px; padding-top: 39px; }
.fv-form.cm, .fv-form.pr { padding-top: 0; }
.fv-full { grid-column: 1 / -1; }
.fv-f { margin-bottom: 13px; min-width: 0; }
.fv-f > label, .fv-pair label, .fv-tri label { display: block; margin: 0 0 4px; font: 700 11px/13px var(--font-ui); letter-spacing: .02em; text-transform: uppercase; color: #000; }
.fv-f input[type=text], .fv-f input[type=email], .fv-f input[type=date], .fv-f input[type=number], .fv-f input[type=search], .fv-f select, .fv-pair input, .fv-pair select, .fv-tri input, .fv-tri select, .fv-two input {
  width: 100%; height: 35px; min-height: 0; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 2px; background: #fff; color: #000; font: 13.5px var(--font-ui);
}
.fv-f textarea { width: 100%; min-height: 0; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 2px; font: 13.5px var(--font-ui); resize: vertical; }
.fv-f input[readonly]:not(.grey), .fv-f textarea[readonly] { background: #fff; }
input.grey, select.grey, textarea.grey, .grey-in.grey { background: #f0f1f1 !important; color: #535963; border-color: #c0c1c1; }
.fv-f select:disabled { opacity: 1; color: #535963; }
.fv-pair { display: grid; grid-template-columns: 1.25fr 1fr; column-gap: 14px; margin-bottom: 13px; min-width: 0; }
.fv-tri { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; margin-bottom: 13px; }
.fv-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fv-add { display: flex; } .fv-add select { flex: 1; min-width: 0; }
.fv-addbtn { width: 61px; height: 35px; margin-left: -1px; border: 1px solid var(--line-2); background: #fff; font: 13.5px var(--font-ui); cursor: pointer; }
.fv-addbtn.solo { margin: 6px 0 0; width: 61px; }
.fv-addbtn:disabled { opacity: .6; cursor: not-allowed; }
.fv-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 4px 2px 10px; border-radius: 99px; background: var(--gold-soft); font-size: 12.5px; }
.chip button { border: 0; background: none; font-size: 16px; line-height: 1; color: #8a6a14; cursor: pointer; padding: 0 4px; }
.fv-foot { display: flex; justify-content: flex-end; gap: 8px; padding-top: 6px; }
.fv-sec { margin: 24px 0 14px; padding-top: 22px; border-top: 1px solid #dfe0e2; font: 300 21px/1.2 var(--font); color: var(--title); }
.fv-sec.first { margin-top: 20px; border-top: 0; padding-top: 0; }
.fv-radios { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.fv-radios label, .fv-rad, .fv-chk { display: inline-flex; align-items: center; gap: 7px; margin: 0; font: 700 11px var(--font-ui); letter-spacing: .02em; text-transform: uppercase; cursor: pointer; }
.fv-radios input, .fv-chk input { width: 15px; height: 15px; margin: 0; }
.pr-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 0; max-width: 509px; margin-top: 8px; }
.fv-toggle { display: inline-flex; align-items: center; gap: 8px; margin: 0; font: 700 11px var(--font-ui); cursor: pointer; }
.fv-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fv-toggle .sw { width: 34px; height: 18px; border-radius: 9px; background: #d7d9dc; position: relative; transition: background .15s; }
.fv-toggle .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: left .15s; }
.fv-toggle input:checked + .sw { background: var(--navy); } .fv-toggle input:checked + .sw::after { left: 18px; }
.fv-toggle input:focus-visible + .sw { outline: 2px solid #5b6fd6; outline-offset: 2px; }
.cm-notebar { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 8px; }
.cm-table { width: 100%; border-collapse: collapse; }
.cm-table th { text-align: left; font: 700 11px var(--font-ui); padding: 6px 4px; border-bottom: 1px solid #dddfe1; }
.cm-table td { padding: 8px 4px 0; } .cm-table input { width: 100%; height: 35px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 2px; font: 13.5px var(--font-ui); }

/* contacts */
.ct { display: grid; grid-template-columns: 270px minmax(0, 1fr); margin-top: 14px; }
.ct-menu { border-right: 1px solid #e1e3e6; align-self: start; }
.ct-menu a { display: flex; align-items: center; justify-content: space-between; min-height: 50px; padding: 0 18px; font: 700 11.5px/1.35 var(--font-ui); letter-spacing: .03em; color: #6c7a89; text-decoration: none !important; }
.ct-menu a:hover:not(.on) { background: #f6f7f9; color: var(--navy); }
.ct-menu a.on { background: var(--navy); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.ct-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--gold); color: #1d1704; font: 700 11px/20px var(--font-ui); text-align: center; }
.ct-panel { padding-left: 22px; min-width: 0; }
.ct-form { padding-bottom: 20px; margin-bottom: 22px; border-bottom: 1px solid #e1e3e6; }
.ct-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.ct-search { flex: 1; max-width: 372px; }
.ct-search h3, .ct-or { margin: 0 0 10px; font: 300 21px/1.2 var(--font); color: var(--title); }
.ct-search input { width: 100%; height: 35px; min-height: 0; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 2px; font: 13.5px var(--font-ui); }
.ct-btns, .ct-bot { display: flex; gap: 5px; justify-content: flex-end; }
.ct-or { margin-top: 18px; }
.ct-check { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font: 700 10.5px var(--font-ui); letter-spacing: .02em; text-transform: uppercase; cursor: pointer; }
.ct-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 90px; }
.ct-copy { border: 0; background: none; padding: 0; font: 700 10.5px var(--font-ui); letter-spacing: .02em; color: #0f3c75; cursor: pointer; text-transform: uppercase; }
.ct-copy:disabled { color: #9aa1ab; cursor: default; }
.ct-fwd[hidden] { display: none; }
.ct-bot { margin-top: 6px; }
.ct-addnew { margin-top: 4px; }
.suggest { position: absolute; z-index: 20; background: #fff; border: 1px solid var(--line-2); box-shadow: 0 8px 20px rgba(0,0,0,.14); width: 372px; max-width: 100%; }
.suggest button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 12px; font: 13px var(--font-ui); cursor: pointer; }
.suggest button:hover { background: #f1f2f6; }
.ct-search { position: relative; }

/* checklist */
.ck-tools { display: flex; justify-content: flex-end; align-items: flex-start; gap: 8px; margin-top: 12px; min-height: 36px; }
.ck-tools .inline { display: inline-flex; }
.ck-sel { height: 36px; min-height: 0; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 3px; background: #fff; font: 13px var(--font-ui); }
.ck-tools .ref-btn, .ck-tools .ref-btn-navy { height: 36px; font-size: 14px; padding: 0 21px; }
.ck-split { display: inline-flex; margin-right: -3px; } .ck-split .caret-only { width: 44px; padding: 0; margin-left: -1px; }
.ck-sec { margin-top: 25px; }
.ck-tools + .ck-sec { margin-top: 17px; }
.ck-sec-h { display: flex; align-items: center; gap: 10px; }
.ck-sec-h .ref-h2 { margin: 0; }
.ck-add { height: 27px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 3px; background: #fff; font: 11px var(--font-ui); cursor: pointer; margin-top: 6px; }
.ck-add:hover { background: #f1f2f4; }
.ck-table { width: 100%; table-layout: fixed; border-collapse: collapse; margin-top: 15px; border-top: 1px solid var(--line); }
.ck-table th { height: 32px; padding: 0; text-align: left; font: 700 12px var(--font-ui); color: #373e4a; border-bottom: 1px solid var(--line); }
.ck-table td { height: 47px; padding: 0; border-bottom: 1px solid #e6e7e9; vertical-align: middle; font: 12px var(--font-ui); }
.ck-table .n { padding-left: 11px; font-size: 11px; } .ck-table .nm { padding-right: 10px; overflow-wrap: anywhere; }
.stp { display: inline-flex; align-items: center; justify-content: center; width: 105px; height: 25px; border-radius: 3px; color: #fff; font: 12px var(--font-ui); }
.stp.completed { background: #009900; } .stp.required { background: #0067a0; } .stp.ifapp { background: #b6d4ec; color: #fff; }
.stp.inreview { background: #d98a00; } .stp.rejected { background: var(--bad); } .stp.na { background: #8a8f98; }
.ck-table .dc a { display: inline-grid; }
.ck-cmt textarea { display: block; width: 266px; height: 36px; min-height: 0; padding: 8px 8px; border: 1px solid var(--line-2); border-radius: 2px; background: #fff; font: 12.5px var(--font-ui); resize: vertical; overflow: hidden; }
.ck-table .ref-btn { height: 36px; padding: 0 17px; font-size: 14px; } .ck-table .act .ref-btn { padding: 0 21px; }
.ck-table .act { white-space: nowrap; } .ck-table .act .inline { display: inline-block; }
.ck-th td { height: auto; padding: 2px 0 10px; border-bottom: 1px solid #e6e7e9; }
.ck-th .comment { margin: 3px 0 0; padding: 6px 10px; border-left: 3px solid var(--line-2); background: #f7f8fa; font-size: 12.5px; }
.ck-th .comment.reject { border-left-color: var(--bad); background: var(--bad-bg); }
.ck-th .comment.accept { border-left-color: var(--ok); }
.ck-th .when { color: var(--muted); font-size: 11.5px; }
.ck-row.hide, .ck-th.hide { display: none; }
.ck-apply { margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--line); }
.ck-apply label { font-size: 12px; }
.ck-row:target { background: var(--gold-soft); }

/* documents */
.dc-tools { display: flex; justify-content: flex-end; align-items: flex-start; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
.dc-tools .ref-btn, .dc-tools .ref-btn-navy { height: 36px; font-size: 14px; padding: 0 17px; }
.dc-tools .ref-btn-navy.up { width: 158px; padding: 0; font: 700 12px var(--font-mont); }
.ref-btn.move { padding-right: 12px; } .dc-tools .dd-menu { min-width: 190px; }
.dc-sub { display: flex; margin-top: 16px; border-bottom: 1px solid #ddd; height: 44px; }
.dc-sub a { display: flex; align-items: center; height: 43px; padding: 0 16px; font: 13px var(--font); text-transform: uppercase; color: #77828c; text-decoration: none !important; }
.dc-sub a.on { background: var(--navy); color: #fff; box-shadow: inset 0 3px 0 var(--gold); }
.dc-table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.dc-table th { height: 34px; padding: 0; text-align: left; font: 700 12px var(--font-ui); color: #000; border-bottom: 1px solid #dddfe1; }
.dc-table td { height: 52px; padding: 0; border-bottom: 1px solid #e6e7e9; vertical-align: middle; font: 13px var(--font-ui); }
.dc-table .cb { padding-left: 8px; } .dc-table input[type=checkbox] { width: 15px; height: 15px; margin: 0; vertical-align: middle; }
.dc-row .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 12px; }
.dc-row .nm a, .dc-row .nm > span:not(.fi) { color: #0f3c75; display: inline-block; max-width: calc(100% - 36px); overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.dc-row .fi { display: inline-block; vertical-align: middle; margin-right: 8px; }
.dc-row .as, .dc-row .pv { padding-left: 14px; }
.dc-row .vw { color: #000; } .dc-row .vw.has { color: #0f3c75; }
.dc-row .ac { white-space: nowrap; }
.dc-row .ac .ref-btn { height: 36px; padding: 0 15px; font-size: 14px; margin-right: 4px; }
.dc-row .ac .rot { display: inline-flex; margin-left: 20px; } .dc-row .ac .rb { width: 37px; padding: 0; margin-right: 0; border-radius: 0; } .dc-row .ac .rb + .rb { margin-left: -1px; }
.dc-row .ac .rb:disabled { opacity: .35; cursor: not-allowed; }
.dc-table td.empty { height: 60px; text-align: center; color: var(--muted); }
.fold { border-bottom: 1px solid #e6e7e9; } .fold > summary { display: flex; align-items: center; gap: 8px; height: 40px; padding-left: 4px; cursor: pointer; list-style: none; font: 12px var(--font-ui); color: #0f3c75; }
.fold > summary::-webkit-details-marker { display: none; } .fold .plus { font-weight: 800; width: 14px; text-align: center; color: #000; }
.fold[open] .plus { font-size: 0; } .fold[open] .plus::before { content: "\2212"; font-size: 14px; }
.fold-empty { padding: 4px 0 14px 30px; } .fold-del { padding: 6px 0 12px 30px; }
.bd th { text-align: left; font: 700 12px var(--font-ui); height: 34px; border-bottom: 1px solid #dddfe1; }
.bd td { padding: 10px 8px 10px 0; border-bottom: 1px solid #e6e7e9; font: 13px var(--font-ui); }
.bd-link { width: 260px; max-width: 100%; height: 30px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 2px; font: 12px var(--font-ui); margin-right: 6px; }
.to-top { position: fixed; right: 22px; bottom: 70px; z-index: 25; height: 32px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 3px; background: #fff; font: 12px var(--font-ui); color: #0f3c75; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.to-top[hidden] { display: none; }

/* log */
.lg-top { margin-top: 12px; display: flex; gap: 8px; align-items: center; }
.lg-top .ref-btn { height: 36px; font-size: 14px; padding: 0 20px; } .lg-search { width: 300px; height: 36px; min-height: 0; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 3px; font: 13px var(--font-ui); } .lg-search[hidden] { display: none; }
.lg-head { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 12px; }
.lg-head .ref-h2 { margin: 0; } .lg-btns { display: flex; gap: 5px; } .lg-btns .ref-btn { height: 36px; font-size: 14px; padding: 0 20px; }
.lg-table { width: 100%; table-layout: fixed; border-collapse: collapse; margin-top: 12px; border-top: 1px solid var(--line); }
.lg-table th { height: 32px; padding: 0 10px; text-align: left; font: 700 12px var(--font-ui); color: #373e4a; border-bottom: 1px solid var(--line); }
.lg-table td { padding: 8px 10px; vertical-align: top; border-bottom: 1px solid #ececee; font: 12px/17px var(--font-ui); overflow-wrap: anywhere; }
.lg-table td.empty { text-align: center; height: 50px; } .lg-mail { color: #4a5160; }

/* tasks */
.tk-tools { position: relative; display: flex; justify-content: space-between; align-items: flex-start; margin-top: 9px; min-height: 36px; }
.tk-filters { display: flex; gap: 3px; } .tk-filters select { height: 36px; min-height: 0; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 3px; font: 13px var(--font-ui); background: #fff; width: 206px; } .tk-filters select + select { width: 150px; }
.tk-right { display: flex; gap: 4px; position: relative; } .tk-right .ref-btn { height: 36px; font-size: 14px; padding: 0 20px; }
.tk-panel { position: absolute; top: 43px; right: 0; z-index: 30; width: 400px; max-width: calc(100vw - 32px); padding: 21px; background: #3b4752; box-shadow: 0 10px 28px rgba(0,0,0,.35); }
.tk-panel[hidden] { display: none; }
.tk-tabs { display: flex; margin-bottom: 8px; } .tk-tabs button { height: 32px; padding: 0 14px; border: 0; background: #e1e2e3; font: 13px var(--font-ui); cursor: pointer; } .tk-tabs button.on { background: #fff; font-weight: 700; }
.tk-panel input, .tk-panel select, .tk-panel textarea { width: 100%; height: 36px; min-height: 0; margin-bottom: 12px; padding: 0 10px; border: 1px solid #fff; border-radius: 0; background: #fff; font: 13px var(--font-ui); }
.tk-panel textarea { height: auto; padding: 8px 10px; } .tk-panel .tk-title { background: #cacbcd; }
.tk-panel label { display: block; margin: 0 0 3px; font: 700 10px var(--font-ui); color: #fff; letter-spacing: .04em; }
.tk-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tk-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; } .tk-foot .ref-btn { margin: 0; } .tk-save:disabled { background: #7d8185; color: #fff; border-color: #7d8185; }
.tk-save:not(:disabled) { background: var(--green); color: #fff; border-color: var(--green); }
.tk-empty { margin: 80px 0 60px; text-align: center; font: 13px var(--font-ui); }
.tk-table { width: 100%; table-layout: fixed; border-collapse: collapse; margin-top: 18px; border-top: 1px solid var(--line); }
.tk-table td { padding: 10px 6px; height: 50px; border-bottom: 1px solid #ececee; font: 13px var(--font-ui); vertical-align: middle; }
.tk-table tr.done .tt { text-decoration: line-through; color: var(--muted); } .tk-table .over { color: var(--bad); font-weight: 700; }
.tk-table input[type=checkbox] { width: 17px; height: 17px; }
.sl { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 14px; }
.sl-left input[type=search] { width: 100%; height: 34px; margin-bottom: 10px; } .sl-box { border: 1px solid var(--line); padding: 12px; margin-bottom: 12px; font: 12px var(--font-ui); min-height: 60px; }
.sl-box b { display: block; font-size: 11px; margin-bottom: 8px; } .sl-chk { display: flex; align-items: center; gap: 8px; margin: 6px 0; font: 12px var(--font-ui); cursor: pointer; }
.sl-right { border: 1px solid var(--line); max-height: 320px; overflow: auto; } .sl-right table { width: 100%; border-collapse: collapse; } .sl-right th, .sl-right td { padding: 8px 10px; text-align: left; font: 12.5px var(--font-ui); border-bottom: 1px solid #eee; }
.sl-right th { font-weight: 700; position: sticky; top: 0; background: #fff; }

/* dialogs */
dialog.dlg { border: 0; border-radius: 3px; padding: 0; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow: auto; box-shadow: 0 10px 40px rgba(0,0,0,.35); color: #000; }
dialog.dlg.wide, #actionDlg:has(.arch) { width: min(900px, calc(100vw - 32px)); }
dialog.dlg::backdrop { background: rgba(0, 0, 0, .3); }
.dlg-body { position: relative; padding: 26px 26px 24px; }
.dlg-title { margin: 0 0 22px; font: 300 28.8px/1.2 var(--font); color: var(--title); letter-spacing: 0; }
.dlg-x { position: absolute; top: 14px; right: 22px; border: 0; background: none; font-size: 28px; line-height: 1; color: #9a9ca0; cursor: pointer; }
.dlg-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; }
.dlg-foot .ref-btn, .dlg-foot .ref-btn-navy { height: 35px; font-size: 14px; }
.act-page { max-width: 640px; padding-top: 40px; } .act-page .dlg-title { margin-bottom: 18px; }
.act-page.arch { max-width: 900px; } .act-addr { font-weight: 700; margin: 0 0 10px; }
.arch-two { display: grid; grid-template-columns: 290px minmax(0, 1fr); }
.arch-v { margin-top: 8px; font: 13px/16px var(--font-ui); }
.arch-note { display: block; width: 100%; height: 52px; min-height: 0; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 2px; font: 13.5px var(--font-ui); resize: vertical; }
.arch-note::placeholder { color: #8a9099; }
.arch-table { width: 100%; table-layout: fixed; border-collapse: collapse; margin-top: 10px; border-top: 1px solid var(--line); }
.arch-table th { height: 31px; padding: 0 10px; text-align: left; font: 700 13px var(--font-ui); border-bottom: 1px solid var(--line); }
.arch-table td { height: 32px; padding: 0 10px; font: 13px var(--font-ui); border-bottom: 1px solid #ececee; overflow-wrap: anywhere; }
.arch .arch-table { display: block; max-height: 250px; overflow: auto; } .arch .arch-table thead, .arch .arch-table tbody { display: table; width: 100%; table-layout: fixed; }
body.pop { display: block; background: #fff; min-height: 0; }
.pop-main { padding: 22px clamp(16px, 9.5vw, 99px) 30px; max-width: 920px; }
.pop-title { margin: 0 0 22px; font: 300 28.8px/1.2 var(--font); color: var(--title); }
.pop-note { display: block; width: 100%; height: 52px; min-height: 0; margin-top: 16px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 2px; font: 13.5px var(--font-ui); resize: vertical; }
.pop-foot { margin-top: 18px; } .pop .flash { margin: 0 0 14px; }

/* attach page, printable summary, public share page */
.at-card { margin-top: 24px; } .at-card .ref-h2 { margin-bottom: 12px; font-size: 24px; } .at-table .right-c { text-align: right; }
body.sum { display: block; background: #fff; min-height: 0; }
.sum-bar { display: flex; gap: 8px; padding: 14px 24px; border-bottom: 1px solid var(--line); background: #f6f7f9; }
.sum-page { max-width: 900px; margin: 26px auto 40px; padding: 0 24px; }
.sum-page h1 { font: 700 16px var(--font); margin-bottom: 4px; } .sum-page h2 { font: 300 28px/1.2 var(--font); margin: 0 0 16px; } .sum-page h3 { margin: 22px 0 8px; font-size: 15px; }
.sum-facts { width: 100%; border-collapse: collapse; } .sum-facts th { width: 16%; text-align: left; font-size: 11px; text-transform: uppercase; color: #373e4a; padding: 6px 8px 6px 0; } .sum-facts td { padding: 6px 12px 6px 0; width: 34%; border-bottom: 1px solid #eee; }
.sum-t { width: 100%; border-collapse: collapse; font-size: 13px; } .sum-t th { text-align: left; padding: 7px 8px 7px 0; border-bottom: 1px solid var(--line); font-size: 12px; } .sum-t td { padding: 7px 8px 7px 0; border-bottom: 1px solid #eee; }
.ref-btn.sm, .ref-btn-navy.sm { height: 30px; padding: 0 12px; font-size: 13px; }

@media print {
  .hdr, .navy-bar, .foot, .fv-tabs, .fv-btns, .lg-btns, .lg-top, .sum-bar, .flashes, .to-top, .dc-tools { display: none !important; }
  .wrap { width: auto; max-width: none; padding: 0; } .lg-table td, .lg-table th { font-size: 11px; }
}
@media (max-width: 1180px) {
  .mt-sec, .ck-sec, .fv-body { overflow-x: auto; }
  .mt-table, .ck-table, .dc-table, .lg-table { min-width: 940px; }
  .fv-band { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: auto; padding-bottom: 12px; } .fv-c.c1 { padding-left: 0; }
  .fv-head { height: auto; padding-bottom: 16px; flex-wrap: wrap; gap: 12px; }
  .fv-form { grid-template-columns: minmax(0, 1fr); } .fv-pair, .ct-grid { column-gap: 14px; }
}
@media (max-width: 760px) {
  .ct { grid-template-columns: 1fr; } .ct-menu { border-right: 0; border-bottom: 1px solid #e1e3e6; display: flex; overflow-x: auto; } .ct-menu a { white-space: nowrap; } .ct-panel { padding-left: 0; }
  .ct-grid, .fv-tri, .arch-two, .sl { grid-template-columns: 1fr; } .mt-search input { width: 100%; } .mt-row { flex-wrap: wrap; height: auto; gap: 8px; } .mt-row .toolbar { margin-left: 0; }
  .fv-band { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mt-top { height: auto; flex-wrap: wrap; gap: 8px; } .mt-top .ref-btn-green { margin-top: 0; }
  .tk-tools { flex-wrap: wrap; gap: 8px; } .tk-filters select { width: 150px; }
}

/* import + map documents */
.dc-sub .dc-links { margin-left: auto; display: flex; align-items: center; gap: 18px; padding-right: 4px; }
.dc-sub .dc-links a { height: auto; padding: 0; font: 13px var(--font-ui); text-transform: none; color: #0f3c75; background: none; box-shadow: none; }
.dc-sub .dc-links a:hover { text-decoration: underline; }
.map-opts { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; margin: 6px 0 4px; }
.map-opts .map-date { height: 35px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 2px; font: 14px var(--font-ui); }
.map-table .pill { margin-left: 6px; } .map-table .pill.st-maybe { background: #f4f1e6; color: #6d5a1c; }
.at-card .ref-h3 { margin: 14px 0 8px; font: 700 15px var(--font-ui); color: #242a65; }
.map-table td { vertical-align: middle; padding: 8px 10px; } .map-table th { padding: 5px 10px 0; height: 32px; }
.map-table select { width: calc(100% - 64px); height: 35px; min-height: 0; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 2px; font: 13.5px var(--font-ui); }
.at-card p { max-width: 860px; } .at-card code { background: #f1f2f4; padding: 1px 5px; border-radius: 3px; font-size: 12.5px; }