:root {
  font-family: "Instrument Sans", "Segoe UI", sans-serif;
  color: #172d28;
  background: #f4f7f5;
  font-synthesis: none;
  --ink: #172d28;
  --green: #126450;
  --muted: #536861;
  --line: #dce6e1;
  --accent: #c9edaa;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
button, .button { cursor: pointer; }
:focus-visible { outline: 3px solid #378b76; outline-offset: 3px; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 232px; display: flex; flex-direction: column; padding: 28px 18px; background: #fff; border-right: 1px solid var(--line); }
.brand { display: inline-flex; gap: 9px; align-items: center; margin: 0 4px 44px; font-size: 19px; font-weight: 750; letter-spacing: -.75px; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: #154e40; color: var(--accent); font-size: 22px; }
.brand-pro { color: #258268; }
.nav-label { text-transform: uppercase; letter-spacing: .12em; font-size: 10px; font-weight: 750; color: var(--muted); margin: 0 12px 12px; }
nav a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; margin: 3px 0; border-radius: 9px; font-weight: 600; font-size: 14px; color: #425a51; }
nav a span { font-size: 18px; width: 20px; text-align: center; }
nav a:hover, nav a[aria-current] { background: #e6f1eb; color: #0d5544; }
.sidebar-footer { margin-top: auto; padding: 16px 10px 4px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.sidebar-footer p { margin: 0 0 5px; font-weight: 700; color: var(--ink); }
.workspace { margin-left: 232px; }
.topbar { display: flex; justify-content: space-between; align-items: center; min-height: 72px; gap: 12px; padding: 12px 32px; background: #fff; border-bottom: 1px solid var(--line); font-size: 14px; }
.top-prefix { color: var(--muted); }
.account { display: flex; align-items: center; gap: 10px; }
.account-name { max-width: 190px; overflow-wrap: anywhere; font-weight: 650; }
main { padding: 32px; max-width: 1440px; margin: auto; }
.hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(25px, 5vw, 55px); border-radius: 20px; background: #124438; color: #fff; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; pointer-events: none; border: 1px solid #95cbae6b; border-radius: 50%; }
.hero::before { width: 410px; height: 410px; right: -100px; top: -130px; box-shadow: 0 0 0 27px #8bc8ae19, 0 0 0 56px #8bc8ae13, 0 0 0 90px #8bc8ae0b; }
.hero::after { width: 160px; height: 160px; right: 27px; top: -20px; background: radial-gradient(circle, #84bb9b52, transparent 70%); }
.hero h1 { margin: 0 0 13px; font-size: clamp(32px, 5vw, 61px); font-weight: 700; line-height: 1.04; letter-spacing: -.052em; max-width: 680px; }
.hero p { max-width: 510px; margin: 0 0 23px; color: #d2e6dc; line-height: 1.55; }
.hero .button.primary { background: var(--accent); color: #17392b; }
h1, h2, h3, p { overflow-wrap: anywhere; }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { margin: 0 0 6px; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.05em; }
.page-head p, .section-head p { margin: 0; color: var(--muted); }
.section-head { margin: 28px 0 15px; }
.section-head h2 { margin: 0 0 4px; font-size: 24px; letter-spacing: -.025em; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 19px; }
.card-link:hover { border-color: #76aa97; background: #fbfefa; }
.card h3 { font-size: 17px; margin: 0; letter-spacing: -.015em; }
.card p { line-height: 1.45; margin: 0; color: var(--muted); }
.card-actions { margin-top: auto; padding-top: 7px; display: flex; flex-wrap: wrap; gap: 8px; }
.icon { background: #e6f2e9; color: #17604a; border-radius: 10px; width: 40px; height: 40px; display: grid; place-items: center; font-size: 22px; margin-bottom: 5px; }
.arrow { color: var(--green); font-weight: 700; margin-top: auto; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { background: #e8f2ed; color: #194f40; border-radius: 20px; padding: 4px 9px; font-size: 12px; font-weight: 650; }
.sample { color: #5c645e; background: #eef0ec; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-weight: 650; font-size: 14px; }
.button:hover { box-shadow: inset 0 0 0 100px #183c260a; }
.primary { background: var(--green); color: white; border-color: transparent; }
.button:disabled { cursor: wait; opacity: .65; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.filters input { flex: 1 1 210px; }
input, select, textarea { background: #fff; padding: 10px 11px; border: 1px solid #c6d6ce; border-radius: 8px; color: var(--ink); min-width: 0; }
textarea { resize: vertical; min-height: 95px; }
.listing-image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 9px; }
.empty { background: white; color: var(--muted); border: 1px dashed #bfd0c8; padding: 25px 19px; border-radius: 12px; margin: 0; }
.message { white-space: pre-wrap; }
.profile-link:hover { text-decoration: underline; color: var(--green); }
.profile-hero { display: flex; align-items: center; gap: clamp(14px, 3vw, 24px); padding: clamp(18px, 4vw, 32px); border-radius: 18px; background: #124438; color: #fff; }
.profile-avatar { flex: 0 0 auto; display: grid; place-items: center; width: clamp(48px, 8vw, 72px); aspect-ratio: 1; background: #c9edaa; color: #193d30; border-radius: 16px; font-size: clamp(22px, 4vw, 34px); font-weight: 700; }
.profile-identity { flex: 1 1 180px; min-width: 0; }
.profile-identity h1 { margin: 8px 0 4px; font-size: clamp(28px, 5vw, 48px); letter-spacing: -.048em; line-height: 1.1; }
.profile-identity p { margin: 0; color: #d2e6dc; }
.profile-actions .primary { background: #c9edaa; color: #17392b; }
.profile-actions:empty { display: none; }
.profile-section-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.profile-section-head h2 { margin: 0; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px; margin: 0; list-style: none; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.profile-tags .badge { display: inline-block; overflow-wrap: anywhere; }
.checkbox-label { display: flex; align-items: center; gap: 6px; }
.danger { color: #9b2824; }
dialog { width: min(520px, calc(100% - 26px)); max-height: calc(100dvh - 30px); border: 1px solid var(--line); border-radius: 16px; padding: 23px; color: var(--ink); }
dialog::backdrop { background: #102c23ad; }
.dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.dialog-head h2 { margin: 0; letter-spacing: -.03em; }
.icon-button { background: #edf4ef; color: var(--ink); border: 0; border-radius: 7px; width: 32px; height: 32px; font-size: 20px; }
form.dialog-form { display: grid; gap: 12px; margin-top: 16px; }
label { display: grid; gap: 5px; font-size: 14px; font-weight: 650; }
form .hint { color: var(--muted); font-size: 13px; margin: 0; }
.error { color: #9b2824; margin: 0; }
#toast { position: fixed; bottom: 16px; right: 16px; max-width: min(370px, calc(100% - 32px)); z-index: 5; }
#toast:not(:empty) { background: #143d33; color: white; padding: 12px 16px; border-radius: 9px; box-shadow: 0 5px 24px #16382e30; }
@media (max-width: 760px) {
  .sidebar { position: static; width: auto; padding: 14px; border-right: none; border-bottom: 1px solid var(--line); }
  .brand { margin: 0 0 10px; }
  nav { display: flex; flex-wrap: wrap; gap: 4px; }
  nav a { font-size: 13px; padding: 0 8px; min-height: 35px; margin: 0; gap: 4px; }
  nav a span { font-size: 15px; width: 16px; }
  .nav-label, .sidebar-footer, .top-prefix { display: none; }
  .workspace { margin-left: 0; }
  .topbar, main { padding: 14px; }
  .topbar { min-height: 58px; }
  .profile-hero { flex-wrap: wrap; }
}
