:root {
  --green: #78bd17;
  --green-dark: #5f9e06;
  --green-pale: #f1f9e7;
  --ink: #172018;
  --muted: #657066;
  --line: #e4e9e2;
  --surface: #ffffff;
  --canvas: #f5f7f3;
  --danger: #b42318;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--canvas); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.feedback-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  place-items: center;
  padding: 34px 24px 22px;
  isolation: isolate;
}

.feedback-page::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(rgba(120,189,23,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,189,23,.025) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.brand-glow { position: absolute; z-index: -1; border-radius: 999px; filter: blur(5px); opacity: .8; }
.brand-glow-one { width: 430px; height: 430px; top: -230px; right: -120px; background: rgba(120,189,23,.13); }
.brand-glow-two { width: 300px; height: 300px; bottom: -210px; left: -100px; background: rgba(120,189,23,.09); }

.public-header { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand-link { display: inline-flex; padding: 8px; margin: -8px; }
.brand-link img { width: 145px; height: auto; }
.language-switcher { display: inline-flex; align-items: center; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.8); }
.language-switcher a { min-width: 38px; padding: 7px 8px; border-radius: 7px; color: var(--muted); text-align: center; text-decoration: none; font-size: 11px; font-weight: 800; letter-spacing: .05em; }
.language-switcher a:hover { color: var(--ink); background: #f1f4ef; }
.language-switcher a.active { color: #fff; background: var(--ink); }

.feedback-card {
  width: min(100%, 640px);
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(222,228,219,.94);
  box-shadow: 0 24px 70px rgba(33,52,20,.09), 0 2px 8px rgba(33,52,20,.04);
  border-radius: 24px;
  padding: 42px 44px 36px;
  margin: 32px 0;
}

.card-heading { border-bottom: 1px solid var(--line); padding-bottom: 28px; margin-bottom: 28px; }
.eyebrow { margin: 0 0 10px; color: var(--green-dark); font-size: 13px; line-height: 1.2; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.card-heading h1, .result-card h1 { margin: 0; font-size: clamp(28px, 5vw, 40px); line-height: 1.08; letter-spacing: -.035em; font-weight: 760; }
.card-heading > p:last-child { margin: 15px 0 0; color: var(--muted); font-size: 17px; line-height: 1.55; }

.rating-fieldset { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.rating-fieldset legend, .name-field > span, .comment-field > span { display: block; margin-bottom: 12px; font-size: 14px; font-weight: 750; }
.optional-label { color: var(--muted); font-size: 11px; font-weight: 500; }
.star-rating { display: flex; gap: 8px; }
.star { position: relative; display: grid; place-items: center; flex: 1; height: 62px; border-radius: 13px; background: #f5f7f3; border: 1px solid #e2e7df; cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.star:hover { transform: translateY(-2px); border-color: #b9c8ae; }
.star:focus-within { outline: 3px solid rgba(120,189,23,.25); outline-offset: 2px; }
.star input { position: absolute; opacity: 0; pointer-events: none; }
.star span { color: #cbd2c6; font-size: 31px; line-height: 1; transition: color .15s ease, transform .15s ease; }
.star.selected { background: var(--green-pale); border-color: rgba(120,189,23,.42); }
.star.selected span { color: var(--green); transform: scale(1.04); }
.rating-meta { min-height: 24px; display: flex; justify-content: space-between; gap: 16px; margin-top: 10px; color: var(--muted); font-size: 13px; }
.rating-meta strong { color: var(--ink); }

.name-field { display: block; margin-bottom: 22px; }
.name-field input { width: 100%; min-height: 52px; padding: 0 16px; color: var(--ink); background: #fbfcfa; border: 1px solid #dfe5dc; border-radius: 13px; outline: none; transition: border-color .15s, box-shadow .15s, background .15s; }
.name-field input::placeholder { color: #9ba49a; }
.name-field input:focus { background: #fff; border-color: var(--green); box-shadow: 0 0 0 3px rgba(120,189,23,.14); }
.comment-field { display: block; position: relative; }
.comment-field textarea { width: 100%; resize: vertical; min-height: 132px; padding: 15px 16px 28px; color: var(--ink); background: #fbfcfa; border: 1px solid #dfe5dc; border-radius: 13px; line-height: 1.5; outline: none; transition: border-color .15s, box-shadow .15s, background .15s; }
.comment-field textarea::placeholder { color: #9ba49a; }
.comment-field textarea:focus { background: #fff; border-color: var(--green); box-shadow: 0 0 0 3px rgba(120,189,23,.14); }
.comment-field small { position: absolute; right: 13px; bottom: 10px; color: #98a095; font-size: 11px; }
.contact-panel { margin-top: 18px; padding: 16px; border: 1px solid #dfe5dc; border-radius: 13px; background: #fbfcfa; }
.contact-panel[hidden], .contact-email[hidden] { display: none; }
.contact-checkbox { display: flex; align-items: flex-start; gap: 11px; cursor: pointer; }
.contact-checkbox[hidden] { display: none; }
.contact-checkbox input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--green); }
.contact-checkbox span { display: block; }
.contact-checkbox strong { display: block; font-size: 14px; }
.contact-checkbox small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.contact-email { display: block; margin-top: 15px; }
.contact-email > span { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.contact-email input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid #dfe5dc; border-radius: 10px; background: #fff; outline: none; }
.contact-email input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(120,189,23,.14); }
.honeypot { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form-error { margin: 14px 0 0; color: var(--danger); font-size: 14px; }

.button { border: 0; border-radius: 12px; min-height: 52px; padding: 0 24px; display: inline-flex; align-items: center; justify-content: center; font-weight: 760; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.button:hover { transform: translateY(-1px); }
.button:focus-visible, .service-link:focus-visible, .quiet-link:focus-visible { outline: 3px solid rgba(120,189,23,.3); outline-offset: 3px; }
.primary-button { width: 100%; margin-top: 22px; color: white; background: var(--green); box-shadow: 0 10px 25px rgba(95,158,6,.2); }
.primary-button:hover { background: var(--green-dark); box-shadow: 0 12px 28px rgba(95,158,6,.27); }
.primary-button:disabled { cursor: wait; opacity: .7; transform: none; }
.secondary-button { margin-top: 28px; color: #fff; background: var(--ink); }
.privacy-note { max-width: 430px; margin: 14px auto 0; color: #899286; text-align: center; font-size: 12px; line-height: 1.45; }

.result-card { text-align: center; padding-block: 52px 48px; }
.result-mark { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 24px; border-radius: 50%; color: #fff; background: var(--green); font-size: 29px; font-weight: 800; box-shadow: 0 12px 30px rgba(95,158,6,.24); }
.promoter-mark { font-size: 27px; }
.result-card .eyebrow { margin-bottom: 12px; }
.result-copy { max-width: 480px; margin: 18px auto 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.service-list { display: grid; gap: 10px; margin: 30px auto 22px; max-width: 460px; }
.service-link { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 18px; border: 1px solid var(--line); border-radius: 12px; background: #fafbf9; text-decoration: none; font-weight: 720; transition: border-color .15s, background .15s, transform .15s; }
.service-link:hover { transform: translateY(-1px); border-color: rgba(120,189,23,.6); background: var(--green-pale); }
.service-link span:last-child { color: var(--green-dark); font-size: 21px; }
.empty-services { max-width: 460px; margin: 28px auto 22px; padding: 17px; border-radius: 12px; color: var(--muted); background: var(--green-pale); font-size: 14px; line-height: 1.5; }
.bonus-offer { max-width: 500px; margin: 30px auto 24px; padding: 24px; border: 1px solid rgba(120,189,23,.35); border-radius: 16px; background: var(--green-pale); text-align: left; }
.bonus-offer h2 { margin: 0; font-size: 21px; letter-spacing: -.02em; }
.bonus-offer > p { margin: 10px 0 20px; color: #566451; font-size: 14px; line-height: 1.55; }
.bonus-offer form { display: grid; gap: 14px; }
.bonus-offer label > span { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 750; }
.bonus-offer input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid #d6dfd1; border-radius: 10px; background: #fff; outline: none; }
.bonus-offer input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(120,189,23,.14); }
.bonus-offer .primary-button { margin-top: 0; }
.bonus-offer .form-error { margin: 0; }
.bonus-success { margin: 0 !important; padding: 14px; border-radius: 10px; color: #466f0d !important; background: #fff; font-weight: 650; }
.bonus-success[hidden], .bonus-offer form[hidden] { display: none; }
.quiet-link { display: inline-block; color: var(--muted); font-size: 14px; text-underline-offset: 4px; }
.public-footer { display: flex; align-items: center; gap: 11px; color: #8a9388; font-size: 12px; }
.public-footer a { text-underline-offset: 3px; }

@media (max-width: 640px) {
  .feedback-page { padding: 22px 14px 18px; }
  .public-header { gap: 16px; }
  .brand-link img { width: 126px; }
  .feedback-card { padding: 30px 20px 26px; border-radius: 20px; margin: 24px 0; }
  .card-heading { padding-bottom: 22px; margin-bottom: 24px; }
  .star-rating { gap: 5px; }
  .star { height: 54px; border-radius: 11px; }
  .star span { font-size: 26px; }
  .rating-meta { display: block; }
  .rating-meta span { display: block; margin-top: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Admin */
.admin-loading, .admin-login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.admin-loading { color: var(--muted); }
.admin-login-page { background: radial-gradient(circle at 80% 0, rgba(120,189,23,.14), transparent 32%), var(--canvas); }
.admin-login-card { width: min(100%, 430px); padding: 38px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 20px 60px rgba(33,52,20,.1); }
.admin-login-card img { display: block; margin-bottom: 42px; }
.admin-login-card h1 { margin: 0; font-size: 34px; letter-spacing: -.035em; }
.admin-login-card > p:not(.eyebrow) { color: var(--muted); line-height: 1.55; }
.admin-login-card label span { display: block; margin: 24px 0 8px; font-size: 13px; font-weight: 750; }
.admin-login-card input, .service-form input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid #dce3d8; border-radius: 10px; background: #fbfcfa; outline: none; }
.admin-login-card input:focus, .service-form input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(120,189,23,.12); }
.admin-login-card > a { display: block; margin-top: 24px; color: var(--muted); text-align: center; font-size: 13px; text-underline-offset: 3px; }

.admin-shell { min-height: 100vh; background: #f3f5f1; }
.admin-header { height: 72px; padding: 0 max(24px, calc((100vw - 1240px)/2)); display: flex; align-items: center; justify-content: space-between; background: #fff; border-bottom: 1px solid var(--line); }
.admin-header > div { display: flex; align-items: center; gap: 18px; }
.admin-header > div span { padding-left: 18px; border-left: 1px solid var(--line); color: var(--muted); font-size: 14px; font-weight: 700; }
.admin-header nav { display: flex; align-items: center; gap: 22px; }
.admin-header nav a, .admin-header nav button { color: var(--muted); background: none; border: 0; font-size: 13px; text-decoration: none; cursor: pointer; }
.admin-header nav a:hover, .admin-header nav button:hover { color: var(--ink); }
.admin-content { max-width: 1240px; margin: 0 auto; padding: 46px 24px 64px; }
.admin-title-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.admin-title-row h1 { margin: 0; font-size: 38px; letter-spacing: -.04em; }
.export-button { min-height: 44px; border: 1px solid #dce3d8; background: #fff; font-size: 13px; }
.filter-panel { margin-bottom: 14px; padding: 14px 18px; }
.filter-panel form { display: grid; grid-template-columns: repeat(4,minmax(130px,1fr)) auto auto; gap: 10px; align-items: end; }
.filter-panel label span, .campaign-form label span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 11px; font-weight: 700; }
.filter-panel input, .filter-panel select, .campaign-form input, .campaign-form select, .feedback-status { width: 100%; min-height: 42px; padding: 0 10px; border: 1px solid #dce3d8; border-radius: 9px; background: #fbfcfa; outline: none; }
.filter-reset { min-height: 42px; border: 0; color: var(--muted); background: transparent; cursor: pointer; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.metric-grid article { min-height: 146px; padding: 22px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.metric-grid article > span { color: var(--muted); font-size: 13px; font-weight: 650; }
.metric-grid article strong { margin-top: auto; font-size: 38px; line-height: 1; letter-spacing: -.04em; }
.metric-grid article small { margin-top: 7px; color: #939b91; }
.metric-grid .accent-metric { background: var(--ink); border-color: var(--ink); color: #fff; }
.metric-grid .accent-metric span, .metric-grid .accent-metric small { color: #b9c3b7; }
.metric-grid .negative-metric { background: #fff5f3; border-color: #f2ccc5; color: var(--danger); }
.funnel-panel { margin-bottom: 14px; }
.funnel-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.funnel-grid article { position: relative; padding: 20px 22px 22px; border-right: 1px solid var(--line); }
.funnel-grid article:last-child { border-right: 0; }
.funnel-grid article:not(:last-child)::after { content: "→"; position: absolute; right: -8px; top: 47%; z-index: 1; color: var(--green-dark); background: #fff; }
.funnel-grid span { display: block; color: var(--muted); font-size: 12px; }
.funnel-grid strong { display: block; margin-top: 8px; font-size: 30px; }
.funnel-grid small { display: block; margin-top: 5px; color: #939b91; }
.admin-columns { display: grid; grid-template-columns: minmax(320px, .8fr) minmax(420px, 1.2fr); gap: 14px; margin-bottom: 14px; }
.admin-panel { border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; }
.panel-heading { min-height: 80px; padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin: 0; font-size: 17px; }
.panel-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.distribution-list { padding: 18px 22px 22px; }
.distribution-row { width: 100%; min-height: 42px; display: grid; grid-template-columns: 50px 1fr 30px; align-items: center; gap: 12px; padding: 0 7px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.distribution-row:hover, .distribution-row.active { background: #f5f8f1; }
.distribution-stars { font-size: 12px; font-weight: 750; }
.distribution-track { height: 8px; overflow: hidden; border-radius: 99px; background: #eef1eb; }
.distribution-track i { display: block; min-width: 0; height: 100%; border-radius: inherit; background: var(--green); }
.distribution-row strong { text-align: right; font-size: 12px; }
.service-form { display: grid; grid-template-columns: .8fr 1.2fr auto; gap: 8px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.add-button { min-height: 48px; padding: 0 16px; color: #fff; background: var(--green); }
.admin-notice { margin: 10px 20px 0; color: var(--green-dark); font-size: 12px; }
.campaign-tools { margin-bottom: 14px; }
.bonus-admin-panel { margin-bottom: 14px; }
.campaign-form { display: grid; grid-template-columns: .7fr 1fr 1fr auto; gap: 8px; align-items: end; padding: 18px 20px 8px; }
.admin-service-list { padding: 6px 20px 13px; }
.admin-service { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid #eef1eb; }
.admin-service:last-child { border-bottom: 0; }
.admin-service > div:first-child { min-width: 0; }
.admin-service strong { display: block; font-size: 13px; }
.admin-service a { display: block; max-width: 330px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.service-actions { display: flex; align-items: center; gap: 8px; }
.service-actions button { cursor: pointer; }
.status-toggle { padding: 5px 8px; border: 0; border-radius: 6px; color: #7b8278; background: #eef1eb; font-size: 10px; font-weight: 700; }
.status-toggle.on { color: #527f10; background: var(--green-pale); }
.delete-button { width: 28px; height: 28px; border: 0; border-radius: 6px; color: #8e9690; background: transparent; font-size: 19px; }
.delete-button:hover { color: var(--danger); background: #fff1ef; }
.admin-empty { margin: 18px 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.feedback-heading button { border: 0; color: var(--green-dark); background: none; font-size: 12px; cursor: pointer; }
.feedback-table-wrap { overflow-x: auto; }
.feedback-table-wrap table { width: 100%; border-collapse: collapse; font-size: 13px; }
.feedback-table-wrap th { padding: 12px 18px; color: #858d82; background: #fafbf9; text-align: left; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.feedback-table-wrap td { padding: 16px 18px; border-top: 1px solid #edf0eb; vertical-align: top; }
.rating-pill { display: inline-flex; min-width: 45px; justify-content: center; padding: 5px 8px; border-radius: 7px; color: #4f5a4e; background: #eef1eb; font-size: 11px; font-weight: 800; white-space: nowrap; }
.rating-4, .rating-5 { color: #527f10; background: var(--green-pale); }
.rating-1, .rating-2 { color: #a13b2f; background: #fff0ed; }
.comment-cell { min-width: 280px; max-width: 580px; line-height: 1.5; }
.name-cell { min-width: 120px; max-width: 190px; font-weight: 650; }
.campaign-value { color: var(--muted); font-size: 11px; }
.language-pill { display: inline-flex; padding: 4px 6px; border-radius: 6px; color: #526052; background: #eef1eb; font-size: 10px; font-weight: 800; }
.contact-link { color: var(--green-dark); font-size: 11px; white-space: nowrap; }
.feedback-status { min-width: 105px; min-height: 34px; font-size: 11px; }
.status-new { color: #a13b2f; background: #fff0ed; }
.status-in_progress { color: #815e0c; background: #fff8df; }
.status-resolved { color: #527f10; background: var(--green-pale); }
.bonus-status { min-width: 110px; min-height: 34px; padding: 0 8px; border: 1px solid #dce3d8; border-radius: 8px; font-size: 11px; }
.bonus-status.status-new { color: #815e0c; background: #fff8df; }
.bonus-status.status-credited { color: #527f10; background: var(--green-pale); }
.bonus-status.status-rejected { color: #a13b2f; background: #fff0ed; }
.bonus-link-cell { min-width: 140px; }
.bonus-link-cell a { color: var(--green-dark); font-weight: 650; white-space: nowrap; }
.date-cell { color: var(--muted); white-space: nowrap; font-size: 11px; }
.row-actions { width: 48px; text-align: right; }
.feedback-delete-button { width: 30px; height: 30px; border: 0; border-radius: 7px; color: #8e9690; background: transparent; font-size: 19px; cursor: pointer; }
.feedback-delete-button:hover, .feedback-delete-button:focus-visible { color: var(--danger); background: #fff1ef; outline: none; }
.table-empty { height: 110px; color: var(--muted); text-align: center; }

@media (max-width: 920px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-columns { grid-template-columns: 1fr; }
  .filter-panel form { grid-template-columns: repeat(2,1fr); }
  .campaign-form { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .admin-header { padding: 0 16px; }
  .admin-header > div span, .admin-header nav a { display: none; }
  .admin-content { padding: 30px 14px 46px; }
  .admin-title-row { align-items: start; }
  .admin-title-row h1 { font-size: 31px; }
  .export-button { padding: 0 13px; font-size: 11px; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .funnel-grid { grid-template-columns: 1fr 1fr; }
  .funnel-grid article:nth-child(2) { border-right: 0; }
  .funnel-grid article { border-bottom: 1px solid var(--line); }
  .filter-panel form { grid-template-columns: 1fr; }
  .metric-grid article { min-height: 126px; padding: 16px; }
  .metric-grid article strong { font-size: 31px; }
  .service-form { grid-template-columns: 1fr; }
  .admin-service { align-items: flex-start; padding: 13px 0; }
}

/* Admin workflow v6 */
[hidden] { display: none !important; }
.form-success { color: var(--green-dark); font-size: 13px; line-height: 1.45; }
.quiet-button { width: 100%; margin-top: 10px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.admin-identity { color: var(--muted); font-size: 12px; }
.alert-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 14px; }
.alert-grid article { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.alert-grid article.warning { border-color: #efc7bf; background: #fff6f4; }
.alert-grid span { color: var(--muted); font-size: 12px; }
.alert-grid strong { font-size: 24px; }
.filter-panel form { grid-template-columns: repeat(5,minmax(115px,1fr)) auto auto; }
.metric-grid-six { grid-template-columns: repeat(6,1fr); }
.metric-grid-six article { min-height: 132px; padding: 18px; }
.metric-grid-six article strong { font-size: 32px; }
.funnel-grid-six { grid-template-columns: repeat(6,1fr); }
.analytics-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-bottom: 14px; }
.simple-chart,.analytics-list { padding: 16px 20px 20px; }
.chart-row { display: grid; grid-template-columns: 68px 1fr 115px; align-items: center; gap: 10px; min-height: 34px; font-size: 11px; }
.chart-row i { display: block; height: 8px; overflow: hidden; border-radius: 99px; background: #eef1eb; }
.chart-row b { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.chart-row strong { text-align: right; }
.analytics-item { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid #eef1eb; font-size: 12px; }
.analytics-item:last-child { border-bottom: 0; }
.analytics-item span { color: var(--muted); }
.service-form-wide { grid-template-columns: .7fr 1.1fr .8fr auto; }
.admin-service small { display: block; margin-top: 3px; color: #8c958b; font-size: 10px; }
.host-editor { display: flex; gap: 5px; margin-top: 7px; }
.host-editor input { width: min(320px,55vw); min-height: 30px; padding: 0 8px; border: 1px solid #dce3d8; border-radius: 6px; font-size: 10px; }
.host-editor button { min-height: 30px; padding: 0 8px; border: 0; border-radius: 6px; color: #527f10; background: var(--green-pale); font-size: 9px; font-weight: 700; cursor: pointer; }
.employees-panel,.audit-panel { margin-bottom: 14px; }
.employee-form { display: flex; gap: 8px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.employee-form input { flex: 1; min-height: 46px; padding: 0 12px; border: 1px solid #dce3d8; border-radius: 9px; }
.employee-list { padding: 0 20px 12px; }
.employee-row { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid #eef1eb; }
.employee-row strong,.employee-row small { display: block; }
.employee-row strong { font-size: 13px; }.employee-row small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.owner-badge { padding: 5px 8px; border-radius: 6px; color: #527f10; background: var(--green-pale); font-size: 10px; font-weight: 700; }
.work-cell { min-width: 430px; }
.case-editor { padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcfa; }
.case-editor.case-alert { border-color: #efb7ad; background: #fff9f7; }
.case-warning { margin: -12px -12px 10px; padding: 7px 10px; color: #9e3024; background: #fff0ed; font-size: 10px; font-weight: 800; }
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.case-editor label span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.case-editor select,.case-editor input,.case-editor textarea { width: 100%; min-height: 34px; padding: 6px 8px; border: 1px solid #dce3d8; border-radius: 7px; background: #fff; font-size: 11px; }
.case-note { display: block; margin-top: 8px; }.case-note textarea { min-height: 64px; resize: vertical; }
.case-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.case-footer small { color: var(--muted); font-size: 9px; }
.case-save { min-height: 32px; padding: 0 11px; border: 0; border-radius: 7px; color: #fff; background: var(--green); font-size: 10px; font-weight: 750; cursor: pointer; }
.client-name { margin-top: 8px; font-size: 11px; font-weight: 700; }
.archive-button { min-width: 66px; padding: 6px 8px; border: 0; border-radius: 7px; color: var(--muted); background: #eef1eb; font-size: 10px; cursor: pointer; }
.overdue-row > td { background: #fffdfc; }
.bonus-amount { width: 76px; min-height: 34px; padding: 0 7px; border: 1px solid #dce3d8; border-radius: 8px; }
.processed-date { display: block; max-width: 130px; margin-top: 5px; color: var(--muted); font-size: 9px; }
.audit-list { max-height: 360px; overflow: auto; padding: 8px 20px 16px; }
.audit-row { display: grid; grid-template-columns: 150px minmax(180px,1fr) 180px; gap: 16px; align-items: center; min-height: 42px; border-bottom: 1px solid #eef1eb; font-size: 11px; }
.audit-row span { color: var(--muted); }.audit-row code { color: #527f10; }

@media (max-width: 1100px) {
  .metric-grid-six { grid-template-columns: repeat(3,1fr); }
  .funnel-grid-six { grid-template-columns: repeat(3,1fr); }
  .funnel-grid-six article:nth-child(3) { border-right: 0; }
  .filter-panel form { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 720px) {
  .alert-grid,.analytics-grid { grid-template-columns: 1fr 1fr; }
  .metric-grid-six { grid-template-columns: 1fr 1fr; }
  .funnel-grid-six { grid-template-columns: 1fr 1fr; }
  .employee-form,.service-form-wide { display: grid; grid-template-columns: 1fr; }
  .admin-identity { display: none; }
}
