/* Diligence online: sign-in, people, versions, Presentation Studio. Builds on app.css. */

.btn-gold { background: linear-gradient(180deg, #D8C48A, #C2A961); color: #0D1A2B; border-color: rgba(255, 255, 255, .25);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 10px 24px -14px rgba(201, 161, 78, .9); font-weight: 600; }
.btn-gold:hover { background: linear-gradient(180deg, #E2D09A, #CDB46B); box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 0 0 3px rgba(201, 161, 78, .25); }
.btn-gold[disabled], .btn-navy[disabled] { opacity: .6; cursor: progress; }
.btn.wide { width: 100%; height: 46px; font-size: 15px; }
.link { border: 0; background: none; padding: 0; color: inherit; text-decoration: underline; text-decoration-color: rgba(201, 161, 78, .7); text-underline-offset: 3px; }
.link:hover { color: #fff; }
a { color: var(--ink); text-decoration-color: rgba(201, 161, 78, .7); text-underline-offset: 3px; }
a:hover { color: var(--gold-deep); }
kbd.k { background: #F1F3F6; color: var(--ink); border: 1px solid var(--line-2); padding: 3px 6px; border-radius: 5px; font-size: 11.5px; }

/* ---------------------------------------------------------------- sign in */
.gate { position: fixed; inset: 0; z-index: 50; background: radial-gradient(120% 90% at 50% 30%, #16273D 0%, #0D1A2B 55%, #08111D 100%);
  color: #fff; display: grid; place-items: center; padding: 24px 16px; overflow: auto; }
.gate-arcs { position: absolute; right: -150px; top: -170px; width: 470px; height: 470px; color: var(--gold); opacity: .3; pointer-events: none; }
.gate-inner { position: relative; width: min(420px, 100%); display: flex; flex-direction: column; align-items: center; }
.gate-logo { width: 240px; height: auto; aspect-ratio: 4774 / 1408; }
.gate .hero-rule { margin: 24px 0 26px; }
.gate-card { width: 100%; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; padding: 28px 26px 24px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); animation: rise .35s var(--ease) both; }
.gate-step h1 { margin: 0 0 6px; font: italic 500 34px/1.1 var(--serif); color: #F4F1EA; }
.gate-sub { margin: 0 0 20px; color: #A9B6C8; font-size: 14.5px; }
.gate-sub b { color: #E7ECF3; font-weight: 700; word-break: break-all; }
.gate-field { display: block; margin-bottom: 14px; }
.gate-field span { display: block; margin-bottom: 7px; font: 500 13px/1.2 var(--display); color: #C9D3E0; }
.gate-field input { width: 100%; height: 46px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(5, 11, 20, .45); color: #fff;
  padding: 0 14px; font-size: 15.5px; outline: 0; transition: border-color .2s, box-shadow .2s; }
.gate-field input::placeholder { color: #6F7E93; }
.gate-field input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 161, 78, .2); }
.code-input { letter-spacing: .5em; text-align: center; font: 600 24px/1 var(--display) !important; }
.gate-error { min-height: 1.2em; margin: 0 0 12px; color: #F0A27A; font-size: 13.5px; }
.gate-error:empty { min-height: 0; margin: 0; }
.gate-dev { margin: 0 0 12px; font-size: 13px; color: #CDBB81; background: rgba(201, 161, 78, .1); border: 1px dashed rgba(201, 161, 78, .5); border-radius: 10px; padding: 8px 12px; }
.gate-links { display: flex; gap: 10px; justify-content: center; margin: 16px 0 0; font-size: 13.5px; color: #A9B6C8; }
.gate-note { margin: 22px 0 0; font-size: 12.5px; color: #7F8EA3; text-align: center; }

/* ---------------------------------------------------------------- header additions */
.me-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(201, 161, 78, .55); background: transparent; padding: 2px; display: grid; place-items: center;
  transition: border-color .2s, box-shadow .2s; }
.me-btn:hover, .me-btn[aria-expanded="true"] { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 161, 78, .18); }
.avatar { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; font: 600 12.5px/1 var(--display); letter-spacing: .04em;
  color: var(--navy); background: linear-gradient(160deg, #E4D3A0, #C2A961); }
.avatar.sm { width: 34px; height: 34px; font-size: 12px; flex: none; }
.avatar.muted { background: #EEF0F3; color: var(--slate); }
.hero-role { margin: 10px 0 0; font: 500 12px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: #9FB0C6;
  transition: opacity .7s var(--ease); }
.hero-role:empty { display: none; }
body.intro-running .hero-role { opacity: 0; }
body.intro-running.intro-rising .hero-role { opacity: 1; }
.icon-btn[hidden] { display: none !important; }

/* menu header for the account menu */
.menu .menu-head { padding: 10px 11px 8px; }
.menu .menu-head b { display: block; font: 600 14px/1.3 var(--display); color: var(--ink); }
.menu .menu-head span { display: block; font-size: 12.5px; color: var(--muted); word-break: break-all; }
.menu .menu-head em { display: inline-block; margin-top: 6px; font: 500 11px/1 var(--display); font-style: normal; color: var(--gold-deep); background: #F6F0E0; padding: 4px 8px; border-radius: 999px; }

/* ---------------------------------------------------------------- apps additions */
.app-badge { font: 500 10.5px/1 var(--display); letter-spacing: .04em; padding: 5px 8px; border-radius: 999px; background: #F3F4F7; color: var(--slate); }
.app-badge.all { background: #F6F0E0; color: var(--gold-deep); }
.app-corner .tags { display: flex; gap: 6px; align-items: center; }
.app-aud { margin: 14px 0 0; }
.app.not-ready .medal { filter: saturate(.4); opacity: .75; }
.open-btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line-2); }
.open-btn.ghost:hover { border-color: var(--gold); box-shadow: none; }
.when-hosted, .when-web { display: none; }
form[data-type="hosted"] .when-hosted, form[data-type="web"] .when-web { display: block; }
form[data-editing="1"] #fTypeField, form[data-editing="1"] .when-hosted { display: none; }
.field input[type="file"] { padding: 9px 10px; background: #FBFAF7; }

/* versions */
.upload-row { display: grid; grid-template-columns: 1fr 150px auto; gap: 8px; align-items: center; margin: 14px 0 18px; }
.upload-row input { border: 1px solid var(--line-2); border-radius: var(--r-ctrl); padding: 9px 11px; background: #fff; font-size: 14px; min-width: 0; }
.version-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.version-list li { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--line); font-size: 14px; }
.version-list .v-label { font: 600 13px/1 var(--display); color: var(--ink); min-width: 52px; }
.version-list .v-meta { flex: 1; color: var(--muted); font-size: 13px; min-width: 0; }
.version-list .v-meta b { color: var(--text); font-weight: 400; }
.version-list .current { font: 500 11.5px/1 var(--display); color: var(--ok); background: rgba(79, 138, 99, .1); padding: 5px 9px; border-radius: 999px; }
.version-list .empty { color: var(--muted); }

/* ---------------------------------------------------------------- dialogs */
.dlg.wide { width: min(860px, calc(100vw - 32px)); }
.dlg-sub { margin: 22px 0 6px; padding-top: 18px; border-top: 1px solid var(--line); font: 600 14.5px/1.3 var(--display); color: var(--ink); }
.hint.tight { margin: 0 0 14px; }
.icon-btn.dark { color: var(--muted); border-color: var(--line-2); }
.icon-btn.dark:hover { color: var(--ink); background: rgba(13, 26, 43, .05); border-color: var(--gold); }

/* ---------------------------------------------------------------- people */
.people { padding: 24px 28px 22px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; }
.people-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.people-head h3 { margin: 0; font: italic 500 32px/1.1 var(--serif); color: var(--ink); }
.people-head .count { font: 400 15px/1 var(--body); color: var(--muted); }
.people .dlg-text { margin: 6px 0 16px; }
.invite { background: #FAF8F3; border: 1px solid var(--line); border-radius: 14px; padding: 16px 16px 12px; }
/* Email and name share what's left; Role is as wide as its longest choice, Location as its boxes. */
.invite-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto; gap: 10px; }
.invite-grid select { padding-right: 32px; }
.invite-grid .field { margin: 0; }
.invite-grid select, .people select { width: 100%; border: 1px solid var(--line-2); border-radius: var(--r-ctrl); padding: 10px 12px; background: #fff; font-size: 14.5px; }
.invite-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.invite-foot .hint { margin: 0; }
.people-tools { display: flex; align-items: center; gap: 12px; margin: 18px 0 8px; flex-wrap: wrap; }
.doc-search.small { height: 36px; min-width: 220px; flex: 0 1 260px; }
.people-list { list-style: none; margin: 0; padding: 0; overflow: auto; min-height: 120px; border-top: 1px solid var(--line); }
.person { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.person-main { flex: 1; min-width: 0; }
.person-main b { display: block; font: 500 14.5px/1.3 var(--display); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-main span { display: block; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role-chip { font: 500 11.5px/1 var(--display); padding: 6px 10px; border-radius: 999px; background: #F3F4F7; color: var(--ink); white-space: nowrap; }
.role-chip.grand { background: var(--navy); color: var(--gold-logo); }
.role-chip.master { background: #1B2D4D; color: #fff; }
.role-chip.admin { background: #F6F0E0; color: var(--gold-deep); }
.role-chip.recruit { background: #EEF4F0; color: #3D7050; }
.role-chip.leader { background: #E9EFF8; color: #2F5D9A; }
.role-chip.licensed { background: #F1ECF6; color: #6A4C8C; }
.role-chip.assistant { background: #F5EEEA; color: #8A5A44; }
.person-status { font-size: 12.5px; color: var(--muted); white-space: nowrap; min-width: 120px; text-align: right; }
.person-status .pending { color: var(--warn); }
.person .kebab { margin: 0; }
.person .kebab[disabled] { visibility: hidden; }
.people-empty { padding: 28px 4px; color: var(--muted); }
/* Teams set up before their leader is in Diligence (2.58), above everyone until confirmed. */
.people-sec { padding: 14px 4px 6px; font: 600 11.5px/1.2 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.people-sec em { font: 400 12px/1.2 var(--body); letter-spacing: 0; text-transform: none; margin-left: 6px; }
.person.team-wait { background: #FBFAF6; }
.avatar.team { background: #fff; border: 1.5px dashed #C9BE9C; color: var(--gold-deep); display: grid; place-items: center; }
.avatar.team svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.role-chip.waiting { background: #FFF6E3; color: #8A6514; }
.person-status .btn { white-space: nowrap; }
.invite-grid .team-field { grid-column: span 2; }

/* ---------------------------------------------------------------- Presentation Studio */
.studio-dlg { width: min(640px, calc(100vw - 32px)); }
.studio-head { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.studio-head h3 { margin: 0 0 4px; }
.studio-head .dlg-text { margin: 0; }
.medal.small { width: 58px; height: 58px; flex: none; }
.medal.small svg { width: 26px; height: 26px; }
.studio-open { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 14px; background: #FAF8F3; border: 1px solid var(--line); margin-bottom: 20px; }
.studio-open .hint { margin: 0; }
.os-tabs { display: flex; gap: 4px; padding: 4px; background: #F1EEE7; border-radius: 999px; width: max-content; margin-bottom: 14px; }
.os-tabs button { border: 0; background: transparent; padding: 8px 18px; border-radius: 999px; font: 500 13.5px/1 var(--display); color: var(--muted); }
.os-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(13, 26, 43, .12); }
.steps { margin: 0 0 12px; padding-left: 22px; display: grid; gap: 10px; font-size: 14.5px; }
.steps li::marker { color: var(--gold-deep); font: 600 14px var(--display); }
.cmd { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 8px 8px 8px 12px; border-radius: 10px; background: var(--navy); }
.cmd code { flex: 1; min-width: 0; font: 12.5px/1.45 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: #E9DDB4; word-break: break-all; user-select: all; }
.cmd .btn { flex: none; background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .2); }
.cmd .btn:hover { border-color: var(--gold); color: #fff; }
.studio-foot { margin-top: 16px; }
/* What to print for a presentation (2.58) */
.studio-print { margin: 0 0 18px; border: 1px solid var(--line); border-radius: 14px; background: #FCFBF8; }
.studio-print summary { cursor: pointer; padding: 12px 16px; font: 500 14px/1.3 var(--display); color: var(--ink); list-style-position: inside; }
.studio-print[open] summary { border-bottom: 1px solid var(--line); }
.studio-print-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.studio-print-grid > div { padding: 12px 16px 14px; font-size: 13.5px; }
.studio-print-grid > div + div { border-left: 1px solid var(--line); }
.studio-print-grid > div > b { display: block; font: 600 11.5px/1.2 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 6px; }
.studio-print ol { margin: 0; padding-left: 18px; display: grid; gap: 5px; color: var(--muted); }
.studio-print ol b { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { .studio-print-grid { grid-template-columns: 1fr; } .studio-print-grid > div + div { border-left: 0; border-top: 1px solid var(--line); } }

/* ---------------------------------------------------------------- activity */
.audit-list { list-style: none; margin: 0; padding: 0; max-height: 60vh; overflow: auto; border-top: 1px solid var(--line); }
.audit-list li { display: grid; grid-template-columns: 150px 170px 1fr; gap: 12px; padding: 9px 2px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.audit-list .when { color: var(--muted); }
.audit-list .who { color: var(--ink); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------------------------------------------- SSO hand-off page */
.sso-page { min-height: 100vh; margin: 0; display: grid; place-items: center; background: var(--navy); color: #C9D3E0; font: 15px/1.5 var(--body); }

@media (max-width: 760px) {
  .invite-grid { grid-template-columns: 1fr; }
  .invite-foot { flex-direction: column; align-items: stretch; }
  .people { padding: 20px 18px 16px; }
  .role-chip { font-size: 10.5px; padding: 5px 8px; }
  .person-status { display: none; }
  .team-wait .person-status { display: block; min-width: 0; }
  .invite-grid .team-field { grid-column: auto; }
  .upload-row { grid-template-columns: 1fr; }
  .studio-open { flex-direction: column; align-items: stretch; }
  .audit-list li { grid-template-columns: 1fr; gap: 2px; }
  .gate-arcs { display: none; }
}

/* ---------------------------------------------------------------- apps: app icons with their names */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); gap: 30px 18px; padding: 6px 0 4px; }
.tile {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 10px 6px 6px; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; border-radius: 18px; outline-offset: 4px;
}
/* The icon: navy squircle, faint gold rings in the corner, gold glyph (the Diligence app icon look). */
.appicon {
  position: relative; display: grid; place-items: center; width: 104px; height: 104px; border-radius: 25px; overflow: hidden;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23C9A14E' stroke-width='.6'%3E%3Ccircle cx='96' cy='4' r='14' opacity='.55'/%3E%3Ccircle cx='96' cy='4' r='22' opacity='.4'/%3E%3Ccircle cx='96' cy='4' r='30' opacity='.28'/%3E%3Ccircle cx='96' cy='4' r='38' opacity='.16'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / 100% 100%,
    linear-gradient(165deg, #22385A 0%, #15263F 48%, #0B1625 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 0 0 1px rgba(201, 161, 78, .22),
    0 14px 24px -14px rgba(13, 26, 43, .7), 0 2px 6px rgba(13, 26, 43, .16);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.appicon::before { /* soft top sheen, like a polished icon */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, 0) 46%);
}
.appicon::after { /* one pass of light on hover */
  content: ""; position: absolute; inset: -30%; pointer-events: none; opacity: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 244, 220, .32) 50%, transparent 60%); transform: translateX(-70%);
}
.appicon svg { position: relative; z-index: 1; width: 46px; height: 46px; fill: none; stroke: url(#dw-gold); stroke-width: 1.35;
  stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .35)); }
.tile:hover .appicon, .tile:focus-visible .appicon { transform: translateY(-5px) scale(1.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 0 0 1px rgba(201, 161, 78, .5),
    0 24px 30px -16px rgba(13, 26, 43, .7), 0 0 0 4px rgba(201, 161, 78, .12); }
.tile:hover .appicon::after, .tile:focus-visible .appicon::after { animation: medalSheen .9s .05s var(--ease) both; }
.tile-name { margin: 14px 0 0; font: 500 14.5px/1.3 var(--display); color: var(--ink); max-width: 15ch; letter-spacing: -.005em; }
.tile-note { margin-top: 4px; font: 400 12px/1.3 var(--body); color: var(--warn); }
.tile-note.me { color: var(--gold-deep); }
.tile.not-ready .appicon { filter: saturate(.35) brightness(1.1); opacity: .7; }
.only-me { position: absolute; z-index: 2; right: 9px; bottom: 9px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold-logo); box-shadow: 0 0 0 2px rgba(11, 22, 37, .9); }
.tile .kebab { position: absolute; top: 2px; right: calc(50% - 66px); opacity: 0; background: #fff; color: var(--ink);
  box-shadow: 0 2px 8px rgba(13, 26, 43, .2); transition: opacity .2s; z-index: 3; }
.tile:hover .kebab, .tile:focus-within .kebab, .tile .kebab[aria-expanded="true"] { opacity: 1; }
.tile-add .appicon.add { background: rgba(255, 255, 255, .5); border: 1.5px dashed rgba(201, 161, 78, .75); box-shadow: none; color: var(--gold-deep); }
.tile-add .appicon.add::before { display: none; }
.tile-add .appicon.add svg { width: 30px; height: 30px; stroke: var(--gold-deep); stroke-width: 1.6; filter: none; }
.tile-add .tile-name { color: var(--muted); }
.tile-add:hover .appicon.add { background: #fff; box-shadow: 0 0 0 4px rgba(201, 161, 78, .1); }
@media (hover: none) { .tile .kebab { opacity: 1; } }
@media (max-width: 760px) {
  .tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 8px; }
  .appicon { width: 76px; height: 76px; border-radius: 18px; }
  .appicon svg { width: 34px; height: 34px; }
  .tile-name { font-size: 12.5px; margin-top: 10px; }
  .tile .kebab { right: calc(50% - 50px); }
}

/* location ticks in People */
/* Teams: choosing someone's team leader, or a team leader's team */
.team-search { width: 100%; max-width: none; min-width: 0; margin: 4px 0 10px; }
.team-pick { list-style: none; margin: 0 0 6px; padding: 0; max-height: min(52vh, 420px); overflow: auto; border-top: 1px solid var(--line); }
.team-pick li { border-bottom: 1px solid var(--line); }
.team-row { display: flex; align-items: center; gap: 12px; padding: 11px 4px; cursor: pointer; margin: 0 !important; }
.team-row input { width: 18px; height: 18px; accent-color: var(--navy); flex: none; margin: 0; }
.team-row span { display: flex; flex-direction: column; min-width: 0; }
.team-row b { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-row em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.loc-checks { display: flex; gap: 6px; flex-wrap: wrap; }
.loc { position: relative; margin: 0 !important; }
.loc input { position: absolute; opacity: 0; pointer-events: none; }
.loc span { display: inline-flex; align-items: center; gap: 7px; height: 41px; padding: 0 14px; border-radius: var(--r-ctrl); border: 1px solid var(--line-2);
  background: #fff; font: 400 14px/1 var(--body); color: var(--muted); cursor: pointer; white-space: nowrap; }
.invite-grid .loc span { padding: 0 10px; }
.loc span::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--line-2); background: #fff; }
.loc input:checked + span { color: var(--ink); border-color: var(--navy); }
.loc input:checked + span::before { background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23CDBB81' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; border-color: var(--navy); }
.loc input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------------------------------------------------------------- private documents */
.field-error { margin: 4px 0 0; min-height: 0; color: #8B2F0B; font-size: 13.5px; }
.field-error:empty { display: none; }
.cat-row { display: flex; gap: 10px; align-items: center; }
.cat-row select { flex: 1; min-width: 0; }
.cat-row .text-btn[hidden] { display: none; }
#aWho label[hidden], #aTitleField[hidden], #dAudField[hidden], #dPinField[hidden], #vOldField[hidden], #vCodeField[hidden], #shareMore[hidden], #sSave[hidden], #vPassField[hidden], #vPass2Field[hidden], #vRememberField[hidden], #vForgot[hidden] { display: none; }
.lock-note { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 0; padding: 11px 13px; border-radius: 12px; background: #F7F4EC; border: 1px solid var(--line);
  font-size: 13px; line-height: 1.45; color: var(--ink); }
.lock-note::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 1px; background: var(--gold-deep);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='5' y='10.5' width='14' height='10' rx='2.2' fill='black'/%3E%3Cpath d='M8.2 10.5V7.6a3.8 3.8 0 0 1 7.6 0v2.9' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='5' y='10.5' width='14' height='10' rx='2.2' fill='black'/%3E%3Cpath d='M8.2 10.5V7.6a3.8 3.8 0 0 1 7.6 0v2.9' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat; }
.lock-note[hidden] { display: none; }

.picker { border: 1px solid var(--line); border-radius: 14px; background: #FBFAF7; padding: 10px; margin: -4px 0 14px; }
.picker[hidden] { display: none; }
.picker .doc-search.small { width: 100%; max-width: none; flex: none; min-width: 0; }
.pick-list { list-style: none; margin: 8px 0 0; padding: 0; max-height: 236px; overflow: auto; }
.pick { display: flex; align-items: center; gap: 11px; padding: 8px 6px; border-radius: 10px; cursor: pointer; }
.pick:hover { background: #F3EFE5; }
.pick input { width: 18px; height: 18px; margin: 0; accent-color: var(--navy); flex: none; }
.pick .pick-main { flex: 1; min-width: 0; }
.pick b { display: block; font: 500 14px/1.3 var(--display); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick small { display: block; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick em { font-style: normal; font-size: 11.5px; color: var(--warn); white-space: nowrap; }
.pick-empty { padding: 14px 6px; color: var(--muted); font-size: 13.5px; }

.vault-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.vault-head h3 { margin: 0; }
.vault-medal { width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(160deg, #1B2D4D, #0D1A2B); box-shadow: inset 0 0 0 1px rgba(205, 187, 129, .35); }
.vault-medal svg { width: 24px; height: 24px; fill: none; stroke: url(#dw-gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
#vaultDialog .dlg-text { margin: 0 0 16px; }

.vault-bar { display: flex; align-items: center; gap: 14px; margin: -6px 0 26px; padding: 12px 14px 12px 12px; border-radius: 14px;
  background: linear-gradient(100deg, #12233A, #0D1A2B); color: #E6ECF3; box-shadow: var(--shadow-sheet); }
.vault-bar[hidden] { display: none; }
.vault-bar p { flex: 1; margin: 0; font-size: 14px; line-height: 1.45; }
.vault-bar p b { color: #fff; font-weight: 700; }
.vault-lock { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; background: rgba(205, 187, 129, .12); }
.vault-lock svg { width: 19px; height: 19px; fill: none; stroke: var(--gold-logo); stroke-width: 1.7; stroke-linecap: round; }
.vault-bar .btn-navy { background: var(--gold-logo); color: var(--navy); border-color: var(--gold-logo); }
.vault-bar .btn-navy:hover { background: #E0CF97; }
.vault-bar .text-btn { color: #A9B6C8; }
.vault-bar .text-btn:hover { color: #fff; }

/* a private document's card */
.doc.private .page { background: linear-gradient(170deg, #FFFFFF 0%, #FAF7EF 100%); }
.doc.private .ph { color: #E3D9C3; }
.doc.private .ph > svg { display: none; }
.doc.private .ph .lock-mark { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(160deg, #1B2D4D, #0D1A2B); box-shadow: inset 0 0 0 1px rgba(205, 187, 129, .35), 0 12px 24px -12px rgba(13, 26, 43, .55); }
.doc.private .ph .lock-mark svg { width: 24px; height: 24px; fill: none; stroke: url(#dw-gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.private-tag { position: absolute; left: 10px; bottom: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 999px;
  background: rgba(13, 26, 43, .86); color: var(--gold-logo); font: 500 10.5px/1 var(--display); letter-spacing: .03em; }
.private-tag svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.doc-meta .waiting { color: var(--warn); }

.share-list { list-style: none; margin: 4px 0 0; padding: 0; border-top: 1px solid var(--line); }
.share-list li { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.share-list .share-main { flex: 1; min-width: 0; }
.share-list b { display: block; font: 500 14px/1.3 var(--display); color: var(--ink); }
.share-list small { display: block; font-size: 12.5px; color: var(--muted); }
.share-list small.waiting { color: var(--warn); }

.cat-list { list-style: none; margin: 4px 0 12px; padding: 0; }
.cat-list li { display: flex; align-items: center; gap: 6px; padding: 4px 0; }
.cat-list input { flex: 1; min-width: 0; border: 1px solid var(--line-2); border-radius: var(--r-ctrl); padding: 9px 11px; background: #fff; font-size: 14.5px; outline: 0; }
.cat-list input:focus, .cat-add input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 161, 78, .16); }
.cat-list .n { font-size: 12px; color: var(--muted); min-width: 56px; text-align: right; }
.cat-list button { width: 32px; height: 32px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--muted); display: grid; place-items: center; }
.cat-list button:hover { border-color: var(--line-2); color: var(--ink); background: #fff; }
.cat-list button[disabled] { visibility: hidden; }
.cat-list button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cat-add { display: flex; gap: 8px; }
.cat-add input { flex: 1; min-width: 0; border: 1px solid var(--line-2); border-radius: var(--r-ctrl); padding: 9px 11px; background: #fff; font-size: 14.5px; outline: 0; }

@media (max-width: 760px) {
  .vault-bar { flex-wrap: wrap; }
  .vault-bar p { flex: 1 1 calc(100% - 50px); }
  #aWho { display: grid; grid-template-columns: 1fr 1fr; }
  #aWho span { display: block; text-align: center; }
}

/* ---------------------------------------------------------------- add Diligence to this computer */
.install-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.install-head img { width: 64px; height: 64px; flex: none; filter: drop-shadow(0 8px 14px rgba(13, 26, 43, .25)); }
.install-head h3 { margin: 0 0 4px; }
.install-head .dlg-text { margin: 0; }
#installMain .steps { margin: 6px 0 12px; }
.install-go { margin: 6px 0 14px; }
.install-mac { margin: 14px 0 4px; padding: 14px 16px; border-radius: 14px; background: #FAF8F3; border: 1px solid var(--line); }
.install-mac.primary { background: transparent; border: 0; padding: 4px 0; }
.install-mac .hint { margin: 8px 0 0; }
.install-more { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.install-more[hidden] { display: none; }
.install-more summary { cursor: pointer; font: 500 13px/1.3 var(--display); color: var(--ink); }
#installAll { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
#installAll li { display: grid; grid-template-columns: 130px 1fr; gap: 10px; font-size: 13px; color: var(--muted); }
#installAll li b { color: var(--ink); font-weight: 700; }
@media (max-width: 480px) { #installAll li { grid-template-columns: 1fr; gap: 0; } }

/* ---------------------------------------------------------------- Face ID / Touch ID */
.bio-ico { width: 21px !important; height: 21px !important; fill: none; stroke: currentColor; stroke-width: 1.6 !important; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.gate-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 16px; color: #7F8EA3; font-size: 12.5px; }
.gate-or::before, .gate-or::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, .12); }
.gate-bio .btn { gap: 10px; }
.vault-bio { gap: 10px; margin: 2px 0 4px; }
.vault-or { display: flex; align-items: center; gap: 12px; margin: 14px 0; color: var(--muted); font-size: 12.5px; }
.vault-or::before, .vault-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
#vOldField .text-btn { margin-top: 4px; }
.vault-bio-ok { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: rgba(79, 138, 99, .09); color: #2F6B45; font-size: 13.5px; }
.bio-list { list-style: none; margin: 0 0 16px; padding: 0; border-top: 1px solid var(--line); }
.bio-list:empty { display: none; }
.bio-list li { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.bio-list .bio-main { flex: 1; min-width: 0; }
.bio-list b { display: block; font: 500 14px/1.3 var(--display); color: var(--ink); }
.bio-list small { display: block; font-size: 12.5px; color: var(--muted); }
.bio-list .bio-here { color: var(--ok); font-weight: 700; }
.bio-list .bio-ico { color: var(--gold-deep); }
.vault-medal .bio-ico { width: 24px !important; height: 24px !important; }
.gate-why { margin: -8px 0 18px; padding: 10px 12px; border-radius: 10px; background: rgba(201, 161, 78, .1); border: 1px solid rgba(201, 161, 78, .35); color: #E3D3A3; font-size: 13.5px; line-height: 1.45; }

/* ---------------------------------------------------------------- passphrase fields */
.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 46px !important; }
.pass-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 34px; border: 0; border-radius: 8px;
  background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.pass-eye:hover, .pass-eye[aria-pressed="true"] { color: var(--ink); background: rgba(13, 26, 43, .05); }
.pass-eye:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.pass-eye svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pass-shape { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; min-height: 0; margin: 6px 2px 0; font-size: 12px; color: var(--muted); }
.pass-shape:empty { display: none; }
.ps-dots { display: inline-flex; align-items: center; flex-wrap: wrap; row-gap: 4px; }
.ps-dots b { width: 5px; height: 5px; border-radius: 50%; background: var(--ink); opacity: .55; margin: 0 1.5px; }
.ps-dots i.sp { width: 12px; height: 7px; margin: 0 4px; border: 1.5px solid var(--gold); border-top: 0; border-radius: 0 0 3px 3px; }
.ps-dots i.sp.odd { border-color: #B4683A; }

/* Studio on a phone or tablet */
.studio-phone { margin: 6px 0 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #FBFAF7; }
.studio-phone p { margin: 0; font-size: 14.5px; }
.studio-phone .hint { margin-top: 8px; }
.studio-phone .btn { width: 100%; margin-top: 12px; }
.studio-phone hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
/* Start-up that took too long */
.stuck { position: fixed; inset: 0; z-index: 2000; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 24px; text-align: center;
  background: radial-gradient(120% 90% at 50% 34%, #16273D 0%, #0D1A2B 55%, #08111D 100%); color: #E7ECF3; }
.stuck p { margin: 0; font-size: 15px; }

/* Settings › App Store review (master account) */
.rev-pick { margin: 0 0 12px; }
.rev-pick summary { cursor: pointer; font: 600 13.5px/1.4 var(--body); color: var(--ink); margin-bottom: 8px; }
.rev-list { display: grid; gap: 2px; margin: 0 0 10px; }
.rev-list h5 { margin: 6px 0 2px; font: 600 11px/1.3 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.rev-list .check { margin: 2px 0; font-size: 14px; }
.rev-list .check.off { opacity: .55; cursor: default; }
.rev-code { background: var(--cream, #F6F3EC); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin: 0 0 12px; }
.rev-code-head { margin: 0 0 6px; font-size: 13px; }
.rev-code-vals { margin: 0 0 8px; font-size: 14px; line-height: 1.7; }
.rev-code-vals b { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; margin-left: 6px; user-select: all; }
.rev-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; }

/* Invitations: a recruit eligible for bonuses (Payroll). */
.bonus-check .bonus-row { display: flex; align-items: center; gap: 8px; min-height: 40px; font-size: 14px; }
.bonus-check input { width: 17px; height: 17px; accent-color: #0D1A2B; }

/* ---------------------------------------------------------------- two-step sign-in */
.gate-hint { margin: 8px 0 18px; font-size: 12.5px; color: #8E9CB0; text-align: center; }
.btn-outline.on-dark { background: transparent; color: #E7ECF3; border: 1px solid rgba(255, 255, 255, .28); }
.btn-outline.on-dark:hover { border-color: var(--gold); color: #fff; }
.gate-gap { margin-top: 16px; }
.qr { width: 184px; margin: 0 auto 14px; padding: 8px; background: #fff; border-radius: 12px; }
.qr svg { display: block; width: 100%; height: auto; }
.gate-key { margin: 0 0 6px; text-align: center; font-size: 13px; color: #A9B6C8; }
.gate-key b { font: 600 13.5px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: #E7ECF3; letter-spacing: .04em; word-break: break-all; }
.gate-key.dark { color: var(--muted, #6B675E); text-align: left; }
.gate-key.dark b { color: var(--ink, #0D1A2B); }
.rc-list { columns: 2; gap: 10px; margin: 0 0 6px; padding: 12px 14px 12px 36px; border-radius: 12px; background: rgba(5, 11, 20, .45); border: 1px solid rgba(255, 255, 255, .12); color: #E7ECF3; }
.rc-list li { margin: 3px 0; font-size: 12.5px; color: #8E9CB0; }
.rc-list code { font: 600 14px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: #F4F1EA; letter-spacing: .05em; }
.rc-list.light { background: #FAF7F0; border-color: #EFE9DC; color: inherit; }
.rc-list.light code { color: #0D1A2B; }
.two-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(13, 26, 43, .1); }
.two-row:first-child { border-top: 0; }
.two-row b { display: block; font-weight: 600; }
.two-row span { display: block; font-size: 13px; color: var(--muted, #6B675E); }
.two-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.two-setup .qr { margin: 8px 0 12px; border: 1px solid rgba(13, 26, 43, .12); }
.two-fresh { margin: 0 0 8px; padding: 10px 12px; border-radius: 10px; background: #FBF6EA; border: 1px solid #EBDDB7; }
.two-fresh.flash { animation: two-flash 1.4s ease; }
@keyframes two-flash { 0%, 55% { box-shadow: 0 0 0 3px rgba(184, 149, 90, .55); border-color: #B8955A; } 100% { box-shadow: 0 0 0 0 rgba(184, 149, 90, 0); } }
.btn.two-stale { opacity: .5; cursor: not-allowed; }
.gate-step .gate-links + .gate-field { margin-top: 16px; }

/* Settings › CRM › One flow for the team */
.crm-team-keys { margin: 4px 0 10px; }
.crm-team-row { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line, #e8e2d6); }
.crm-team-row .hint { font-size: 12.5px; }
.crm-team-name { display: block; font: inherit; font-weight: 600; color: inherit; background: transparent; border: 1px solid transparent; border-radius: 6px; padding: 2px 6px; margin: 0 0 2px -7px; width: 18em; max-width: calc(100% + 7px); }
.crm-team-name:hover { border-color: var(--line, #e8e2d6); }
.crm-team-name:focus { border-color: var(--navy, #1f3a5f); outline: none; background: var(--card, #fff); }
.crm-team-div { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; margin-top: 4px; }
.crm-team-div select { font: inherit; padding: 2px 6px; }
.crm-team-key { font: 500 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }
#crmTeamOwn { margin-top: 10px; }
.crm-team-people { margin: 0 0 12px; }
.crm-pair-h { margin: 6px 0 4px; }
.crm-pair-h .hint { display: block; font-size: 12.5px; margin-top: 2px; }
.crm-pair-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line, #e8e2d6); }
.crm-pair-name { flex: 1; min-width: 0; font-size: 14px; }
.crm-pair-name small { display: block; font-size: 11.5px; color: var(--muted, #6B675E); }
.crm-pair-row select { flex: 0 1 260px; min-width: 0; max-width: 60%; border: 1px solid var(--line-2, #d9d2c3); border-radius: var(--r-ctrl, 8px); padding: 7px 10px; background: #fff; font-size: 13.5px; }
.crm-pair-done { margin-top: 8px; }
.crm-pair-done > summary { cursor: pointer; font-size: 13.5px; font-weight: 600; padding: 4px 0; }
.crm-pair-name .crm-pair-diff { color: #8A5A00; }
/* (2.61) Remove from the list: a small link under the name, so the names keep their room. */
.crm-pair-rm { display: inline-block; margin-top: 3px; padding: 0; border: 0; background: none; font: inherit; font-size: 12px; color: var(--muted, #6B675E); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.crm-pair-rm:hover { color: #8A3A2E; }
.crm-pair-rm:disabled { opacity: .5; cursor: default; }
.crm-pair-name .crm-pair-rm { display: block; }
.crm-pair-row > .btn { flex: none; }
.crm-check-days { list-style: none; margin: 4px 0 12px; padding: 0; font-size: 13px; }
.crm-check-days li { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line, #ece6d9); }
.crm-check-days li.not span b { color: #8A3A2E; }
.crm-check-act { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.crm-check-act select { flex: 0 1 170px; min-width: 0; border: 1px solid var(--line-2, #d9d2c3); border-radius: var(--r-ctrl, 8px); padding: 5px 8px; background: #fff; font-size: 13px; }
.crm-team-hist { margin: 0 0 12px; }
/* Check someone's bookings (2.60) */
.crm-check { margin: 4px 0 14px; padding: 12px 14px; border: 1px solid var(--line, #e8e2d6); border-radius: 12px; background: #FDFBF7; }
.crm-check-h { margin: 0 0 8px; font-size: 14px; }
.crm-check-h .hint { display: block; font-size: 12.5px; margin-top: 2px; }
.crm-check-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crm-check-row select { flex: 1 1 220px; min-width: 0; border: 1px solid var(--line-2, #d9d2c3); border-radius: var(--r-ctrl, 8px); padding: 7px 10px; background: #fff; font-size: 13.5px; }
.crm-check-out { font-size: 13.5px; }
.crm-check-out:empty { display: none; }
.crm-check-out > p { margin: 10px 0 0; }
.crm-check-warn { color: #8A5A00; }
.crm-check-flows { margin: 8px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--muted, #6B675E); }
.crm-check-list { list-style: none; margin: 10px 0 0; padding: 0; }
.crm-check-list > li { padding: 8px 0; border-top: 1px solid var(--line, #e8e2d6); }
.crm-check-list > li > b { display: block; font-size: 13.5px; }
.crm-check-list > li.theirs > b { color: #2F6B43; }
.crm-check-list > li.other > b, .crm-check-list > li.left > b, .crm-check-list > li.not > b { color: #8A3A2E; }
.crm-check-list small { display: block; font-size: 12px; color: var(--muted, #6B675E); margin-top: 2px; }
@media (max-width: 520px) { .crm-pair-row { flex-direction: column; align-items: stretch; } .crm-pair-row select { max-width: none; flex: none; } }

/* Secure File Transfer: the NearEDGE link sent to a client in Diligence's look (app.js: sft). The
   preview copies the email's own look (public/js/mail-design.js) with classes. */
.sft-dlg { width: min(1040px, calc(100vw - 24px)); }
.sft-head { display: flex; align-items: flex-start; gap: 16px; justify-content: space-between; flex-wrap: wrap; margin-bottom: 14px; }
.sft-head h3 { margin-bottom: 8px; }
.sft-head .dlg-text { margin: 0; }
.sft-grid { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 24px; align-items: start; }
.sft-form .seg span { font-size: 13px; }
.sft-form .hint.warn { color: #A8661B; }
.sft-private { padding: 10px 12px; border-radius: 10px; background: #FAF7F0; border: 1px solid #EFE9DC; margin-top: 4px !important; }
.sft-preview { background: #F6F3EC; border: 1px solid #E8E1D0; border-radius: 14px; padding: 12px 14px 16px; max-height: min(66vh, 640px); overflow: auto; }
.sft-subj { margin: 0 2px 10px; font: 400 13px/1.4 Arial, Helvetica, sans-serif; color: #1B1C1F; }
.sft-subj span { display: inline-block; margin-right: 6px; font-size: 10.5px; letter-spacing: 1.4px; text-transform: uppercase; color: #A68F4E; font-weight: bold; }
.sftm-card { background: #fff; border: 1px solid #E8E1D0; border-radius: 10px; max-width: 560px; margin: 0 auto; overflow: hidden; font: 15px/1.6 Arial, Helvetica, sans-serif; color: #1B1C1F; }
.sftm-head { display: block; width: 100%; height: auto; border-bottom: 3px solid #CDBB81; }
.sftm-body { padding: 22px 30px 24px; }
.sftm-body p { margin: 0 0 13px; }
.sftm-kicker { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #A68F4E; font-weight: bold; margin: 0 0 6px !important; }
.sftm-h { margin: 0 0 14px; font: bold 21px/1.3 Arial, Helvetica, sans-serif; color: #111214; }
.sftm-box { background: #FAF7F0; border: 1px solid #EFE9DC; border-radius: 8px; padding: 8px 16px; margin: 4px 0 16px; }
.sftm-box div { display: flex; gap: 14px; padding: 6px 0; font-size: 14.5px; }
.sftm-box span { flex: none; width: 72px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: #A68F4E; font-weight: bold; padding-top: 3px; }
.sftm-btn { display: inline-block; background: #CDBB81; color: #111214; font-weight: bold; font-size: 15px; letter-spacing: .3px; padding: 13px 28px; border-radius: 6px; margin: 4px 0 14px; }
.sftm-note { font-size: 13px; line-height: 1.55; color: #6B675E; }
.sftm-link { color: #A68F4E; word-break: break-all; }
.sftm-sign { font-size: 15px; line-height: 1.5; margin-top: 4px !important; }
.sftm-sign span { color: #6B675E; font-size: 13.5px; }
.sftm-trade { margin: 0; padding: 12px 30px 16px; border-top: 1px solid #EFE9DC; font-size: 11px; line-height: 1.5; color: #8A8578; }
.sft-done { margin: 14px 0 0; padding: 11px 14px; border-radius: 10px; background: #EAF3EC; border: 1px solid #CFE3D5; color: #2F6B43; font-size: 14px; }
@media (max-width: 820px) {
  .sft-grid { grid-template-columns: 1fr; }
  .sft-preview { max-height: none; }
  .sftm-body { padding: 18px 18px 20px; }
  .sftm-trade { padding: 12px 18px 14px; }
}
