/* Frosty Pine Properties — site styles */
:root {
  --pine: #1f4d3a;
  --pine-dark: #153628;
  --pine-light: #2f6b52;
  --frost: #eaf3f6;
  --frost-2: #d6e8ee;
  --ice: #8fc1d4;
  --snow: #ffffff;
  --bark: #6b4f3a;
  --ink: #1c2522;
  --muted: #5b6a65;
  --line: #dfe6e3;
  --bg: #f8faf9;
  --ok: #1f7a4c;
  --warn: #9a6400;
  --err: #b42318;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 40, 30, .06), 0 6px 20px rgba(16, 40, 30, .07);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pine-light); }
a:hover { color: var(--pine-dark); }
h1, h2, h3 { line-height: 1.2; color: var(--pine-dark); margin: 0 0 .5em; }
h1 { font-family: var(--serif); font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code { background: var(--frost); padding: 1px 5px; border-radius: 4px; font-size: .9em; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.fine { font-size: .82rem; color: var(--muted); margin-top: .75rem; }
.nowrap { white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .08em; }
.pre { white-space: pre-wrap; }
.req { color: var(--err); }
.skip { position: absolute; left: -999px; top: 0; background: var(--pine); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--pine-light); margin-bottom: .75rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px; border: 2px solid transparent; font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .05s; line-height: 1.2; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--pine); color: #fff; }
.btn-primary:hover { background: var(--pine-dark); color: #fff; }
.btn-outline { border-color: var(--pine); color: var(--pine); background: transparent; }
.btn-outline:hover { background: var(--pine); color: #fff; }
.btn-ghost { color: var(--pine); background: transparent; }
.btn-ghost:hover { background: var(--frost); }
.btn-light { background: #fff; color: var(--pine-dark); }
.btn-light:hover { background: var(--frost); color: var(--pine-dark); }
.btn-danger { background: #fff; color: var(--err); border-color: #f1c4bf; }
.btn-danger:hover { background: var(--err); color: #fff; border-color: var(--err); }
.btn-lg { padding: 13px 24px; font-size: 1.02rem; }
.btn-sm { padding: 6px 12px; font-size: .85rem; }
.btn-block { display: flex; width: 100%; margin-top: 10px; }
.linklike { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 0; }

/* Header */
.site-header { background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; backdrop-filter: blur(6px); }
.header-inner, .admin-header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--pine-dark); font-weight: 800; font-size: 1.1rem; letter-spacing: -.01em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink); padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: .95rem; }
.nav a:hover, .nav a.active { background: var(--frost); color: var(--pine-dark); }
.nav a.btn { margin-left: 8px; color: var(--pine); }
.nav a.btn:hover { color: #fff; background: var(--pine); }
.nav-btn { display: none; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-btn span { display: block; width: 24px; height: 2px; background: var(--pine-dark); margin: 5px 0; border-radius: 2px; }
@media (max-width: 860px) {
  .header-inner, .admin-header-inner { flex-wrap: wrap; }
  .nav { flex-wrap: wrap; }
  .js .nav-btn { display: block; }
  .js .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: #fff; flex-direction: column; align-items: stretch; padding: 10px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .js .nav.open { display: flex; }
  .nav a.btn { margin: 8px 0 0; }
}

/* Hero */
.hero { background: linear-gradient(180deg, var(--frost) 0%, #f4f9fa 70%, var(--bg) 100%); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-art img { width: 100%; }
@media (max-width: 860px) { .hero-inner { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 32px; } .hero-art { max-width: 420px; } }
.page-hero { background: linear-gradient(180deg, var(--frost), var(--bg)); padding: 48px 0 24px; }

/* Quick links */
.quick-links { margin-top: -8px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.quick { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.quick:hover { border-color: var(--ice); transform: translateY(-2px); color: var(--ink); }
.quick strong { display: block; color: var(--pine-dark); }
.quick span { font-size: .85rem; color: var(--muted); }
@media (max-width: 900px) { .quick-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .quick-grid { grid-template-columns: 1fr; } }

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head p { margin: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.features { margin-top: 28px; }
.feature { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature img { margin-bottom: 12px; }
.about { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
.steps-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.steps { margin: 0; padding-left: 1.2em; }
.steps li { margin-bottom: .7em; }
.cta { background: var(--pine); color: #fff; padding: 44px 0; background-image: radial-gradient(circle at 85% 20%, rgba(143,193,212,.25), transparent 45%); }
.cta h2 { color: #fff; margin-bottom: .25em; }
.cta p { margin: 0; opacity: .85; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Cards */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.listing-card { text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column; }
.listing-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(16,40,30,.12); color: var(--ink); }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--frost); }
.card-media > img { width: 100%; height: 100%; object-fit: cover; }
.media-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; background: linear-gradient(135deg, var(--frost), var(--frost-2)); opacity: .9; }
.media-placeholder.tall { aspect-ratio: 16 / 10; border-radius: var(--radius); }
.card-body { padding: 16px 18px 20px; }
.card-body h3 { margin: 2px 0 2px; }
.card-body .muted { margin: 0 0 10px; font-size: .92rem; }
.price { font-weight: 800; font-size: 1.35rem; color: var(--pine); }
.price small { font-size: .95rem; font-weight: 600; color: var(--muted); }
.price-lg { font-size: 2rem; margin-bottom: 8px; }
.facts { list-style: none; display: flex; gap: 16px; padding: 0; margin: 0; color: var(--muted); font-size: .92rem; }
.facts strong { color: var(--ink); }
.facts-lg { gap: 12px; margin: 18px 0 28px; flex-wrap: wrap; }
.facts-lg li { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 18px; display: flex; flex-direction: column; min-width: 96px; }
.facts-lg strong { font-size: 1.35rem; color: var(--pine-dark); }
.facts-lg span { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.badge { position: absolute; left: 12px; top: 12px; background: #fff; color: var(--ink); font-size: .78rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.badge.inline { position: static; display: inline-block; box-shadow: none; }
.badge-available { background: #e3f4ea; color: var(--ok); }
.badge-pending { background: #fff3d6; color: var(--warn); }
.badge-rented { background: #eceff1; color: #455a64; }
.empty { background: #fff; border: 2px dashed var(--line); border-radius: var(--radius); padding: 40px 24px; text-align: center; }
.empty p { max-width: 560px; margin-left: auto; margin-right: auto; color: var(--muted); }
.results-count { margin-bottom: 16px; }

/* Rental detail */
.crumbs { margin-bottom: 16px; font-size: .92rem; }
.crumbs a { text-decoration: none; }
.rental-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; align-items: start; }
@media (max-width: 960px) { .rental-layout { grid-template-columns: 1fr; } }
.gallery-main { margin: 0; background: var(--frost); border-radius: var(--radius); overflow: hidden; }
.gallery-main img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.gallery-main figcaption { padding: 8px 14px; font-size: .88rem; color: var(--muted); background: #fff; }
.gallery-main figcaption:empty { display: none; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; margin-top: 10px; }
.thumb { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; aspect-ratio: 4 / 3; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active, .thumb:hover { border-color: var(--pine); }
.rental-title { margin-top: 28px; font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.rental-loc { margin-top: -6px; }
.rental-side { position: sticky; top: 90px; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.side-card h2 { font-size: 1.35rem; margin-top: 10px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 12px 0 16px; font-size: .95rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.checklist { list-style: none; padding: 0; columns: 2; gap: 24px; }
.checklist li { padding-left: 26px; position: relative; margin-bottom: 8px; break-inside: avoid; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 2.5px solid var(--pine-light); border-bottom: 2.5px solid var(--pine-light); transform: rotate(-45deg); }
@media (max-width: 560px) { .checklist { columns: 1; } }
.prose { max-width: 720px; }
.legal h2 { font-size: 1.3rem; margin-top: 1.8em; }
.legal ul { padding-left: 1.3em; }
.legal li { margin-bottom: .5em; }
.float-right { float: right; margin: 0 0 12px 18px; }

/* Forms */
.form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 6px; margin: 0 0 22px; background: #fff; }
.form legend { font-weight: 700; color: var(--pine-dark); padding: 0 8px; }
.form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 14px; color: var(--ink); }
.form label.inline { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; margin-right: 16px; }
.form label.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; font-size: .92rem; }
.form label.check input { margin-top: 4px; flex-shrink: 0; width: 18px; height: 18px; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form input[type=number], .form input[type=date], .form input[type=password], .form input[type=url], .form input[type=file], .form select, .form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border: 1.5px solid #cfd9d5; border-radius: 9px; font: inherit; font-weight: 400; font-size: 1rem; background: #fff; color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--pine-light); box-shadow: 0 0 0 3px rgba(47,107,82,.15); }
.form textarea { resize: vertical; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
.row-2.tight { gap: 0 12px; }
@media (max-width: 640px) { .row-2, .row-3 { grid-template-columns: 1fr; } .row-2.tight { grid-template-columns: 1fr 1fr; } }
.radio-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 4px; margin-bottom: 14px; font-weight: 600; font-size: .92rem; }
.radio-row > span { margin-right: 12px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent { background: var(--frost) !important; }
.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: start; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }
.form-actions { display: flex; gap: 12px; align-items: center; margin-top: 10px; }

/* Alerts */
.alert { border-radius: 10px; padding: 12px 16px; margin: 0 0 18px; font-size: .95rem; border: 1px solid; }
.alert ul { margin: 6px 0 0; padding-left: 1.2em; }
.alert-err { background: #fdecea; border-color: #f5c2bc; color: #7a1a12; }
.alert-ok { background: #e6f5ec; border-color: #b9e2c9; color: #14532d; }
.alert-warn { background: #fff6e0; border-color: #f2d58a; color: #6b4600; }
.alert-info { background: var(--frost); border-color: var(--frost-2); color: #23434f; }
.alert.small { font-size: .85rem; margin-top: 14px; }

/* Residents */
.resource-grid .side-card { display: flex; flex-direction: column; }
.pay-list { padding-left: 1.1em; }
.pay-list li { margin-bottom: .6em; }
.faq details { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { font-weight: 700; cursor: pointer; color: var(--pine-dark); }
.faq details p { margin: 10px 0 0; }
.thanks img { margin: 0 auto 16px; }
.thanks .btn { margin: 6px; }

/* Footer */
.site-footer { background: var(--pine-dark); color: #d7e5df; padding: 48px 0 0; margin-top: 0; font-size: .93rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer h3 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.brand-footer { color: #fff; margin-bottom: 10px; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { margin-bottom: 8px; }
.eho { display: flex; gap: 10px; align-items: center; font-size: .85rem; }
.eho img { filter: brightness(0) invert(1); opacity: .9; flex-shrink: 0; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding: 18px 20px 24px; font-size: .82rem; opacity: .8; }

/* Admin */
body.admin { background: #f3f6f5; font-size: 16px; }
.admin-header { background: var(--pine-dark); position: sticky; top: 0; z-index: 50; }
.admin-header .brand { color: #fff; }
.admin-header .nav a, .admin-header .linklike { color: #d7e5df; padding: 8px 10px; border-radius: 8px; font-size: .9rem; text-decoration: none; }
.admin-header .nav a:hover, .admin-header .nav a.active { background: rgba(255,255,255,.12); color: #fff; }
.admin-header .nav-btn span { background: #fff; }
@media (max-width: 860px) { .js .admin-header .nav { background: var(--pine-dark); } }
.inline-form { display: inline; margin: 0; }
.pill { background: #f59e0b; color: #1c1917; border-radius: 999px; padding: 1px 7px; font-size: .75rem; font-weight: 700; }
.admin-main { padding: 28px 0 60px; }
.admin-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.admin-title h1 { font-size: 1.8rem; margin: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-title > div { display: flex; gap: 8px; flex-wrap: wrap; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 20px; }
.panel h2 { font-family: var(--font); font-size: 1.1rem; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; }
.narrow-panel { max-width: 560px; }
.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 20px; }
@media (max-width: 960px) { .stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: var(--muted); font-size: .85rem; display: flex; flex-direction: column; }
.stat:hover { border-color: var(--ice); }
.stat-n { font-size: 1.8rem; font-weight: 800; color: var(--pine-dark); line-height: 1.1; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fafcfb; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table a { text-decoration: none; }
.panel .table td { padding-left: 0; }
tr.unread td { background: #f2f9fc; font-weight: 600; }
.status { display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; background: #eceff1; color: #455a64; }
.status-available, .status-approved { background: #e3f4ea; color: var(--ok); }
.status-pending, .status-reviewing { background: #fff3d6; color: var(--warn); }
.status-new { background: #dbeafe; color: #1e40af; }
.status-declined { background: #fdecea; color: var(--err); }
.status-hidden, .status-withdrawn { background: #f1f1f1; color: #666; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.filters a { text-decoration: none; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .85rem; color: var(--ink); text-transform: capitalize; }
.filters a.active { background: var(--pine); color: #fff; border-color: var(--pine); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-bottom: 18px; }
.photo-item { border: 1px solid var(--line); border-radius: 10px; padding: 8px; background: var(--bg); position: relative; }
.photo-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.photo-item .badge { position: absolute; top: 14px; left: 14px; }
.photo-item input { margin-top: 8px !important; padding: 7px 9px !important; font-size: .85rem !important; }
.photo-actions { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid #f5c2bc; background: #fffafa; border-radius: var(--radius); padding: 14px 18px; margin: 20px 0; font-size: .9rem; color: var(--muted); }
@media (max-width: 640px) { .danger-zone { flex-direction: column; align-items: flex-start; } }
.auth-box { max-width: 420px; margin: 40px auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; text-align: center; box-shadow: var(--shadow); }
.auth-box img { margin: 0 auto 10px; }
.auth-box h1 { font-size: 1.6rem; font-family: var(--font); }
.auth-box .form { text-align: left; margin-top: 18px; }

/* Website assistant widget */
.fpc-launch { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: inline-flex; align-items: center; gap: 8px; background: var(--pine); color: #fff; border: 0; border-radius: 999px; padding: 13px 20px; font: inherit; font-weight: 700; font-size: .95rem; box-shadow: 0 8px 24px rgba(16,40,30,.25); cursor: pointer; min-height: 48px; }
.fpc-launch:hover { background: var(--pine-dark); }
.fpc-launch.fpc-hide { display: none; }
.fpc-panel { position: fixed; right: 20px; bottom: 20px; z-index: 95; width: 380px; max-width: calc(100vw - 24px); height: 580px; max-height: calc(100vh - 40px); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 50px rgba(16,40,30,.25); display: flex; flex-direction: column; overflow: hidden; }
.fpc-panel[hidden] { display: none; }
.fpc-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--pine); color: #fff; padding: 14px 16px; }
.fpc-head strong { display: block; font-size: 1rem; }
.fpc-head span { display: block; font-size: .78rem; opacity: .85; }
.fpc-close { background: none; border: 0; color: #fff; cursor: pointer; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 10px; }
.fpc-close:hover { background: rgba(255,255,255,.12); }
.fpc-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.fpc-msg { max-width: 85%; padding: 10px 13px; border-radius: 14px; font-size: .93rem; line-height: 1.45; word-wrap: break-word; }
.fpc-assistant { background: #fff; border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.fpc-user { background: var(--pine); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.fpc-msg a { color: var(--pine-light); font-weight: 600; }
.fpc-typing { display: flex; gap: 4px; padding: 14px; }
.fpc-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: .4; animation: fpc-dot 1.2s infinite; }
.fpc-typing i:nth-child(2) { animation-delay: .2s; } .fpc-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes fpc-dot { 0%, 80%, 100% { opacity: .25; } 40% { opacity: .9; } }
@media (prefers-reduced-motion: reduce) { .fpc-typing i { animation: none; } }
.fpc-card { display: flex; gap: 8px; align-items: center; align-self: stretch; background: #e6f5ec; border: 1px solid #b9e2c9; color: #14532d; border-radius: 10px; padding: 10px 12px; font-size: .88rem; font-weight: 600; }
.fpc-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px; background: var(--bg); }
.fpc-chips:not(:empty) { padding-bottom: 10px; }
.fpc-chip { background: #fff; border: 1.5px solid var(--frost-2); color: var(--pine-dark); border-radius: 999px; padding: 7px 12px; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; min-height: 36px; }
.fpc-chip:hover { border-color: var(--pine-light); }
.fpc-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); align-items: flex-end; }
.fpc-input { flex: 1; resize: none; border: 1.5px solid #cfd9d5; border-radius: 10px; padding: 10px 12px; font: inherit; font-size: .95rem; line-height: 1.35; max-height: 120px; }
.fpc-input:focus { outline: none; border-color: var(--pine-light); box-shadow: 0 0 0 3px rgba(47,107,82,.15); }
.fpc-send { width: 44px; height: 44px; flex-shrink: 0; border: 0; border-radius: 10px; background: var(--pine); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.fpc-send:disabled { opacity: .5; cursor: default; }
.fpc-note { margin: 0; padding: 0 14px 10px; font-size: .72rem; color: var(--muted); }
.fpc-note a { color: var(--muted); }
@media (max-width: 520px) {
  .fpc-panel { right: 0; bottom: 0; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .fpc-launch { right: 14px; bottom: 14px; }
}
.rp-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 4px; margin: 0 0 16px; background: var(--frost); }
.rp-box legend { font-weight: 700; color: var(--pine-dark); padding: 0 6px; }
.chat-log { display: flex; flex-direction: column; gap: 10px; }
.chat-log .fpc-msg { max-width: 80%; }
.chat-tool { align-self: center; font-size: .78rem; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: 999px; padding: 3px 10px; }
.src { font-size: .7rem; font-weight: 700; text-transform: uppercase; background: var(--frost); color: #23434f; border-radius: 999px; padding: 2px 7px; margin-left: 6px; }
.h2-admin { font-family: var(--font); font-size: 1.1rem; margin: 18px 0 10px; }
