:root {
  color-scheme: light;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #18271f;
  background: #f1f4ee;
  --ink: #18271f;
  --muted: #536358;
  --line: #d9e1d7;
  --lime: #dbf6a7;
  --forest: #172b21;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.055em; line-height: 1.08; overflow-wrap: anywhere; }
h2 { font-size: 1.2rem; letter-spacing: -.02em; }
h3 { font-size: 1rem; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, .button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: .58rem 1rem; color: var(--ink); background: var(--lime);
  border: 1px solid #bbd88b; border-radius: .65rem; font-weight: 650; text-decoration: none; cursor: pointer;
}
button:hover, .button:hover { filter: brightness(.95); }
.secondary { background: #fff; border-color: var(--line); }
:focus-visible { outline: 3px solid #5d8b47; outline-offset: 3px; }
.agency-logo {
  display: block; width: min(100%, 18rem); height: auto; margin-bottom: .3rem;
}
.agency-mark {
  display: block; width: 2.5rem; height: 2.25rem; flex: none;
  padding: .38rem; object-fit: contain; background: #fff; border-radius: .45rem;
}
.welcome {
  display: grid; gap: 1rem; justify-items: start; max-width: 34rem; margin: min(14vh, 9rem) auto 2rem;
  padding: clamp(1.5rem, 6vw, 3rem); border: 1px solid var(--line); border-radius: 1.4rem; background: white;
  box-shadow: 0 18px 55px #172b2110;
}
.login-form { width: 100%; display: grid; gap: 1rem; }
.login-form button { justify-self: start; }
.error { color: #982e29; }
.top {
  height: 4.5rem; padding: 0 clamp(1rem, 3vw, 2.5rem); display: flex; align-items: center; justify-content: space-between;
  color: #f3f7ef; background: var(--forest);
}
.brand { display: flex; gap: .75rem; align-items: center; font-size: 1.2rem; font-weight: 720; text-decoration: none; }
.shell { display: grid; grid-template-columns: minmax(13rem, 17rem) minmax(0, 1fr); min-height: calc(100vh - 4.5rem); }
aside { padding: 1.5rem 1.15rem; border-right: 1px solid var(--line); background: #f9fbf7; }
.new { width: 100%; }
.client-group { margin-top: 1.4rem; }
.client-group h2 { display: flex; justify-content: space-between; margin: 0 0 .3rem; font-size: .95rem; }
.client-group h2 span { color: var(--muted); font-weight: 500; }
.client-group p { padding: .25rem 0; font-size: .9rem; }
.client { display: grid; gap: .15rem; border-radius: .55rem; padding: .55rem; text-decoration: none; overflow-wrap: anywhere; }
.client:hover, .client.active { background: #e8f2d9; }
.client small { color: var(--muted); }
.workspace { width: 100%; max-width: 80rem; padding: clamp(1rem, 4vw, 3rem); }
.heading, .section-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.heading { margin-bottom: 1.4rem; }
.heading p { margin-top: .4rem; overflow-wrap: anywhere; }
.toolbar, .row-actions { display: flex; gap: .45rem; flex-wrap: wrap; align-items: center; }
.muted, small, .save span { color: var(--muted); }
.pill { display: inline-block; margin-bottom: .55rem; border-radius: 1rem; padding: .25rem .7rem; background: #e3e9de; text-transform: capitalize; font-size: .85rem; font-weight: 650; }
.pill.published, .notice { background: #e5f5d7; }
.notice { padding: .7rem 1rem; border-radius: .65rem; margin-bottom: 1rem; }
.panel { margin-bottom: 1rem; padding: clamp(1rem, 2.5vw, 1.6rem); border: 1px solid var(--line); border-radius: .9rem; background: #fff; }
.panel h2 { margin-bottom: .8rem; }
.panel p { margin-bottom: .75rem; }
.section-head h2 { margin-bottom: 0; }
.section-head { margin-bottom: .55rem; }
.empty { display: grid; justify-items: start; gap: .65rem; padding-block: 2rem; }
.empty h2, .empty p { margin: 0; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.wide { grid-column: 1 / -1; }
label { display: grid; gap: .4rem; align-content: start; font-size: .95rem; font-weight: 620; min-width: 0; }
label small { font-weight: 400; }
input:not([type=color]), select, textarea {
  min-width: 0; width: 100%; padding: .6rem .7rem; color: var(--ink); background: #fcfdfb;
  border: 1px solid #ccd6ca; border-radius: .5rem;
}
textarea { min-height: 5rem; resize: vertical; }
.colors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; }
.color input { width: 100%; min-height: 44px; padding: .2rem; background: #fff; border: 1px solid var(--line); border-radius: .45rem; cursor: pointer; }
.link-row {
  display: grid; grid-template-columns: minmax(7rem, .7fr) minmax(7rem, 1fr) minmax(8rem, 1.4fr) auto;
  align-items: end; gap: .6rem; border-top: 1px solid var(--line); padding-block: .8rem;
}
.link-row .row-actions button { width: 44px; padding: 0; }
.save { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; margin-bottom: 1rem; }
.image-card { display: grid; align-content: start; gap: .7rem; border: 1px solid var(--line); border-radius: .65rem; padding: .8rem; }
.image-card img { max-width: 100%; width: 100%; height: 7rem; object-fit: contain; background: #edf1eb; border-radius: .4rem; }
.image-card form { display: grid; gap: .6rem; }
.profile { position: relative; isolation: isolate; min-height: 100vh; color: var(--text); background: var(--background); }
.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cover ~ .profile-inner::before {
  content: ""; position: absolute; inset: 0; background: var(--background); opacity: .74; z-index: -1;
}
.profile-inner { width: min(100%, 38rem); min-height: 100vh; margin: auto; padding: clamp(3rem, 9vh, 7rem) 1.2rem 1.6rem; text-align: center; display: flex; align-items: center; flex-direction: column; gap: 1rem; }
.avatar {
  width: 6rem; height: 6rem; display: grid; place-items: center; object-fit: contain; border-radius: 50%;
  background: var(--button); color: var(--button-text); font-weight: 800; font-size: 2.4rem; overflow: hidden;
}
.bio { white-space: pre-wrap; overflow-wrap: anywhere; }
.social { display: flex; justify-content: center; flex-wrap: wrap; gap: .6rem; }
.social a {
  display: grid; place-items: center; width: 46px; height: 46px; background: var(--button); color: var(--button-text);
  border-radius: 50%; text-decoration: none;
}
.profile-links { width: 100%; display: grid; gap: .75rem; margin-top: .25rem; }
.profile-links a {
  display: grid; place-items: center; min-height: 54px; padding: .7rem 1rem;
  background: var(--button); color: var(--button-text); text-decoration: none; font-weight: 700;
  border-radius: .75rem; overflow-wrap: anywhere;
}
.profile-links a:hover, .social a:hover { filter: brightness(.9); }
.profile footer { margin-top: auto; padding-top: 2rem; font-size: .9rem; }
.profile footer a { display: inline-flex; align-items: center; gap: .5rem; }
.profile footer .agency-mark { width: 1.75rem; height: 1.5rem; padding: .25rem; }
.preview { background: #16291f; color: white; display: flex; justify-content: space-between; gap: .7rem; padding: .75rem 1rem; }
.preview + .profile-inner { min-height: calc(100vh - 3rem); }
@media (max-width: 1000px) {
  .link-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  aside { border-right: 0; border-bottom: 1px solid var(--line); padding: 1rem; }
  .client-group:has(.client) { max-height: 10rem; overflow: auto; }
  .fields, .link-row { grid-template-columns: minmax(0, 1fr); }
  .colors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .welcome { margin-inline: 1rem; }
}
