:root { font-family: var(--font-ui); line-height: 1.5; color: var(--ink); background: #fff; --ink: #0b1f33; --jade: #10b981; --lime: #a3e635; --neutral: #f2f5f7; --primary: #08734f; --line: #dce6e5; --muted: #435767; }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; }
.wrap { width: min(1180px, 100% - 2 * clamp(19px, 6vw, 72px)); margin-inline: auto; }
.site-header, .site-footer { display: flex; min-height: 82px; align-items: center; justify-content: space-between; gap: 18px; }
.site-header { border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: 1.1rem; font-weight: 750; letter-spacing: -.035em; }
.wordmark span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-header > :last-child, .site-footer > :last-child { flex-shrink: 0; }
.wordmark .brand-logo { display: block; width: min(162px, 100%); height: auto; flex: 0 1 auto; min-width: 0; }
.wordmark .brand-symbol { width: 34px; }
.site-header nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 36px); }
.site-header nav > a, .site-header > a:last-child, .site-footer > a:last-child { font-size: .93rem; font-weight: 650; }
.site-header > a:last-child:hover, .site-footer > a:last-child:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 4px; }
.button { min-height: 45px; display: inline-flex; align-items: center; justify-content: center; gap: 24px; border-radius: 8px; border: 1px solid transparent; padding: 11px 17px; font-weight: 700; }
.button-outline { border-color: var(--line); }
.button-outline:hover { border-color: var(--primary); color: var(--primary); }
.button-primary { background: var(--action-background, var(--jade)); color: var(--ink); }
.button-primary:hover { background: color-mix(in srgb, var(--action-background, var(--jade)) 90%, #000); }
.button-primary:disabled { opacity: .65; cursor: wait; }
.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: clamp(48px, 9vw, 118px) 0 clamp(42px, 7vw, 90px); gap: clamp(24px, 4.5vw, 65px); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-title); overflow-wrap: anywhere; }
h1 { font-size: clamp(2.9rem, 6vw, 5.55rem); letter-spacing: -.045em; line-height: 1.07; font-weight: 670; }
.hero-copy p { color: var(--muted); max-width: 48ch; margin: 24px 0 27px; font-size: clamp(1rem, 2vw, 1.27rem); line-height: 1.55; }
.hero-copy h1 { font-size: clamp(2.65rem, 5.15vw, 4.75rem); line-height: 1.05; text-wrap: balance; }
.hero-copy .button { min-height: 50px; padding-inline: 20px; }
.product-preview { display: grid; align-items: center; padding: clamp(13px, 3vw, 35px); border-radius: 19px; background: var(--neutral); min-width: 0; }
.product-window { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 12px 32px #0b1f3314; font-size: .78rem; }
.preview-bar { display: flex; align-items: center; min-height: 45px; padding: 8px 13px; gap: 8px; border-bottom: 1px solid var(--line); }
.preview-bar img { width: 22px; height: 21px; flex-shrink: 0; }
.preview-bar strong { font-size: .88rem; line-height: 1.15; }
.preview-bar > span { margin-left: auto; color: var(--primary); font-weight: 650; }
.preview-grid { display: grid; grid-template-columns: minmax(92px, .5fr) minmax(0, 1.45fr); min-height: 270px; }
.preview-menu { display: flex; align-items: stretch; flex-direction: column; gap: 13px; padding: 16px 10px; color: var(--muted); border-right: 1px solid var(--line); }
.preview-menu > * { padding-inline: 5px; }
.preview-menu > b { color: var(--primary); background: var(--neutral); padding-block: 5px; border-radius: 6px; }
.preview-content { display: grid; align-content: start; gap: 10px; padding: clamp(10px, 2vw, 20px); }
.preview-post { border: 1px solid var(--line); padding: 12px; border-radius: 9px; }
.preview-person, .preview-event { display: flex; align-items: center; gap: 8px; }
.initials, .event-mark { width: 29px; height: 29px; flex: 0 0 29px; display: grid; place-items: center; border-radius: 50%; font-weight: 700; color: var(--ink); background: color-mix(in srgb, var(--jade) 26%, white); }
.preview-content small { display: block; margin-top: 3px; color: var(--muted); font-size: .72rem; }
.preview-post p { line-height: 1.5; margin: 10px 0; overflow-wrap: anywhere; }
.preview-reactions { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); }
.preview-reactions > span:first-child { display: inline-flex; align-items: center; gap: 4px; color: #b6131c; }
.preview-reactions .reaction-heart { width: 15px; height: 15px; fill: #d31620; }
.preview-event { background: var(--neutral); border-radius: 8px; padding: 10px; }
.event-mark { background: var(--lime); }
.features { border-top: 1px solid var(--line); padding-block: 30px 50px; }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); letter-spacing: -.032em; line-height: 1.16; font-weight: 650; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 24px; }
.feature-grid article { border-top: 1px solid var(--line); padding-top: 14px; }
.feature-grid h3 { font-size: 1.25rem; line-height: 1.25; margin-bottom: 6px; }
.feature-grid p { color: var(--muted); line-height: 1.55; max-width: 32ch; }
.site-footer { border-top: 1px solid var(--line); }
.site-footer > div { display: flex; gap: 18px; }
.login-support { display: inline-block; margin-top: 21px; font-size: .92rem; color: var(--primary); text-decoration: underline; text-underline-offset: 4px; }
.login-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(25px, 8vw, 112px); padding-block: clamp(40px, 8vw, 95px); }
.login-form { max-width: 410px; }
.login-form h1 { font-size: clamp(2.75rem, 5.6vw, 4.35rem); }
.login-form > p { color: var(--muted); margin: 18px 0 26px; line-height: 1.5; }
.login-form form, .field { display: grid; gap: 8px; }
.login-form form { gap: 19px; }
.field label { font-weight: 650; }
.field input { width: 100%; min-height: 50px; border: 1px solid #9eaeb6; border-radius: 8px; padding: 10px 12px; color: inherit; }
.password-field { display: flex; position: relative; }
.password-field input { padding-right: 86px; }
.password-field button { position: absolute; inset: 4px 4px 4px auto; border: 0; border-radius: 5px; background: transparent; color: var(--primary); padding: 0 10px; font-size: .86rem; font-weight: 650; }
.password-field button:hover { background: var(--neutral); }
.form-error { color: #9d202d; font-size: .94rem; }
.login-company summary { cursor: pointer; color: var(--primary); font-weight: 650; }
.login-company .field { margin-top: 12px; }
.login-lockup { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; color: var(--primary); }
.login-lockup img { display: block; width: auto; max-width: 160px; height: 38px; object-fit: contain; }
.login-page .button-primary { color: var(--login-button-text, var(--ink)); }
.login-form > .form-error { color: #9d202d; margin-bottom: 0; }
.login-art { min-height: 490px; display: grid; place-items: center; overflow: hidden; background: radial-gradient(ellipse at top right, #133c56, var(--ink) 65%, #081627); border-radius: 19px; }
.login-art img { display: block; width: min(53%, 260px); height: auto; }
[hidden] { display: none !important; }
.admin-main { padding-block: clamp(36px, 6vw, 72px); }
.admin-main h1 { font-size: clamp(2.25rem, 4vw, 3.5rem); margin-bottom: 35px; }
.admin-layout { display: grid; grid-template-columns: minmax(155px, 23%) minmax(0, 1fr); gap: clamp(20px, 4vw, 54px); }
.admin-layout nav { display: flex; align-self: start; gap: 4px; flex-direction: column; position: sticky; top: 20px; }
.admin-layout nav a { font-weight: 650; padding: 10px 12px; border-radius: 8px; white-space: nowrap; }
.admin-layout nav a:hover { background: var(--neutral); color: var(--primary); }
.admin-section { border-top: 1px solid var(--line); padding: 24px 0 34px; scroll-margin-top: 20px; }
.admin-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.tenant-list { list-style: none; margin: 19px 0 0; padding: 0; }
.tenant-list li { min-height: 58px; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); padding: 9px 8px; overflow-wrap: anywhere; }
.tenant-list span { color: var(--muted); font-size: .88rem; }
.tenant-address-row { display: grid; gap: 3px; min-width: 0; }
.tenant-address-row a { color: var(--primary); font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.tenant-address { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tenant-address input { flex: 1 1 145px; }
.tenant-address span { color: var(--muted); overflow-wrap: anywhere; }
.admin-section form, .tenant-dialog form { display: grid; justify-items: start; gap: 15px; }
.admin-section form { margin-top: 20px; max-width: 440px; }
.admin-section .field, .tenant-dialog .field { width: 100%; }
.tenant-dialog { width: min(510px, calc(100% - 28px)); max-height: calc(100dvh - 28px); overflow: auto; padding: clamp(18px, 4vw, 30px); border: 1px solid var(--line); border-radius: 16px; color: inherit; box-shadow: 0 24px 60px #182f6540; }
.tenant-dialog::backdrop { background: #16264a69; }
.tenant-dialog .admin-heading { margin-bottom: 18px; }
.tenant-dialog .admin-heading .button { padding-block: 4px; font-size: 1.4rem; }
.tenant-dialog fieldset { width: 100%; margin: 0; border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: grid; gap: 12px; }
.tenant-dialog legend { padding-inline: 5px; font-weight: 650; }
.existing-user { display: flex; align-items: center; gap: 6px; }
.field-help, .form-feedback { color: var(--muted); font-size: .875rem; }
.form-feedback.form-error { color: #9d202d; }
@media (max-width: 760px) {
  .hero, .login-layout { grid-template-columns: 1fr; }
  .hero { align-items: start; }
  .login-art { display: none; }
  .wordmark .brand-logo { width: min(142px, 100%); }
  .wordmark .brand-symbol { width: 31px; }
  .login-form { width: min(100%, 460px); margin-inline: auto; }
  .site-header, .site-footer { min-height: 70px; }
  .admin-layout { grid-template-columns: 1fr; gap: 10px; }
  .admin-layout nav { flex-direction: row; flex-wrap: wrap; position: static; }
  .tenant-list li { grid-template-columns: 1fr 1fr; }
  .tenant-list li > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 500px) { .feature-grid { grid-template-columns: 1fr; gap: 16px; } }
