[hidden] { display: none !important; }
.owner-dialog.survey-editor { width: min(760px, 94vw); max-height: 90vh; overflow-y: auto; }
.survey-questions { display: grid; gap: 22px; margin: 20px 0; }
.survey-questions fieldset { border: 1px solid #dcd6e5; border-radius: 10px; padding: 18px; min-width: 0; }
.survey-questions legend { font-weight: 600; padding: 0 8px; }
.survey-questions label { display: grid; gap: 6px; font-size: 14px; }
.survey-questions .survey-required { display: flex; gap: 8px; margin: 12px 0; }
.survey-option { display: flex; align-items: end; gap: 8px; margin: 10px 0; }
.survey-option label { flex: 1; min-width: 0; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
:focus-visible { outline: 3px solid #d9782f; outline-offset: 3px; }
.boot { padding: 48px; text-align: center; }
.auth-intro { color: #69667a; margin: -15px 0 24px; font-size: 14px; }
.auth-link { border: 0; background: none; color: #68508e; padding: 8px; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.auth-description { font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.auth-code { letter-spacing: .3em; font-size: 22px; }
.auth-notice { color: #356844; background: #edf6ef; border-radius: 8px; padding: 12px; font-size: 14px; line-height: 1.5; margin-top: 16px; }
.login-form h2 { font-size: 21px; color: #372851; margin: 0; }
.login-form label, .register-form label, #dialogFields label { display: grid; gap: 8px; font-size: 13px; color: #4c475d; }
.password-row { position: relative; display: block; }
.password-row input { padding-right: 90px; }
.password-toggle { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); border: 0; background: none; font-size: 12px; color: #6c568c; padding: 6px; }
.content { padding: 28px; max-width: 1440px; width: 100%; margin: 0 auto; }
.topbar { height: 78px; }
.topbar__title { font-size: 20px; font-weight: 600; }
.topbar__subtitle { font-size: 13px; margin-top: 4px; }
.sidebar__logo { font-size: 25px; padding-top: 28px; }
.sidebar__username { color: #fff; white-space: normal; overflow-wrap: anywhere; }
.sidebar__footer { gap: 15px; }
.nav-item { gap: 10px; }
.nav-item[aria-current="page"] { background: rgba(255,255,255,.12); color: white; border-left: 3px solid #f0883a; }
.nav-item__icon { width: 20px; font-size: 23px; }
.muted { color: #716c80; }
.small { font-size: 12px; }
.intro-panel { padding: 30px; background: #efedf7; border: 1px solid #e0dbee; border-radius: 14px; margin-bottom: 24px; }
.intro-panel h2 { font-size: 25px; font-weight: 600; color: #2c2160; margin-bottom: 12px; }
.intro-panel p { max-width: 660px; line-height: 1.6; color: #655b7e; }
.owner-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 28px; }
.metric-card { padding: 23px; }
.metric-card__value { font-size: 32px; margin-top: 10px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 24px 0 15px; }
.section-heading h2 { font-size: 18px; }
.section-heading a { color: #68508d; font-size: 14px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px,1fr)); gap: 18px; }
.owner-card { background: #fff; border: 1px solid #e4e1ea; border-radius: 12px; padding: 24px; min-width: 0; }
.owner-card h2 { font-size: 18px; font-weight: 600; margin-bottom: 10px; overflow-wrap: anywhere; }
.url { color: #746b82; font-size: 13px; overflow-wrap: anywhere; line-height: 1.5; }
.card-detail { margin-top: 20px; font-size: 13px; color: #746b82; }
.card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.owner-button { border: 1px solid transparent; background: #f0883a; color: #fff; padding: 10px 16px; border-radius: 7px; font-size: 13px; font-weight: 500; }
.owner-button:hover { background: #d9742e; }
.owner-button.secondary { background: #fff; color: #56466f; border-color: #dcd5e5; }
.owner-button.secondary:hover { background: #f4f1f8; }
.owner-button.danger { background: #fff; border-color: #e3b4b4; color: #a53434; }
.empty { background: #fff; border: 1px dashed #d8d1e6; border-radius: 12px; padding: 44px 24px; text-align: center; }
.empty h2 { font-size: 20px; margin-bottom: 10px; }
.empty p { line-height: 1.6; color: #716c80; margin-bottom: 22px; }
.stage-note { padding: 15px 18px; border-radius: 8px; background: #fff6e9; color: #86501f; font-size: 13px; line-height: 1.6; margin-bottom: 22px; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid #e4e1ea; border-radius: 12px; }
.owner-table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; }
.owner-table th { background: #faf9fc; color: #7c718d; font-weight: 500; padding: 16px 20px; }
.owner-table td { padding: 18px 20px; border-top: 1px solid #eeebf2; vertical-align: top; }
.owner-table td:first-child { min-width: 220px; max-width: 380px; }
.owner-table strong { display: block; font-size: 14px; margin-bottom: 7px; overflow-wrap: anywhere; }
.owner-table .card-actions { margin: 0; min-width: 240px; }
.owner-table .owner-button { padding: 7px 10px; font-size: 12px; }
.badge { display: inline-block; border-radius: 20px; padding: 5px 10px; white-space: nowrap; font-size: 12px; background: #ece8f4; color: #706386; }
.badge.active { color: #2a7453; background: #e6f4ec; }
.badge.closed { color: #6a6870; background: #eeeeef; }
.filter-row { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; font-size: 13px; }
.filter-row select { max-width: 350px; }
.owner-dialog { margin: auto; border: 0; border-radius: 14px; width: min(520px,calc(100vw - 32px)); padding: 28px; box-shadow: 0 20px 100px #20143e44; max-height: 90vh; overflow: auto; }
.owner-dialog::backdrop { background: #231c3d77; }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 24px; }
.dialog-heading h2 { font-size: 20px; }
.close-button { border: 0; background: none; padding: 4px 8px; font-size: 26px; color: #837590; }
#dialogFields { display: grid; gap: 18px; }
#dialogFields p { line-height: 1.6; font-size: 14px; }
.dialog-footer { display: flex; justify-content: flex-end; gap: 12px; margin-top: 26px; }
.error { color: #b33232; font-size: 13px; line-height: 1.5; margin-top: 16px; }
.notice-page { max-width: 680px; margin: 80px auto; padding: 30px; font: 18px/1.6 system-ui; }
@media (max-width: 760px) {
  .sidebar { width: 160px; }
  .main-area { margin-left: 160px; }
  .content { padding: 16px; }
  .topbar { padding: 14px 16px; height: auto; gap: 12px; flex-wrap: wrap; }
  .owner-metrics { grid-template-columns: 1fr; gap: 10px; }
  .cards { grid-template-columns: 1fr; }
  .intro-panel { padding: 22px; }
}
@media (max-width: 480px) {
  .sidebar { width: 120px; }
  .main-area { margin-left: 120px; }
  .nav-item { padding: 12px 8px; font-size: 12px; }
  .nav-item__icon { display: none; }
  .nav-group__title { font-size: 10px; }
  .sidebar__logo { padding-left: 12px; font-size: 22px; }
  .intro-panel h2 { font-size: 20px; }
  .topbar__title { font-size: 18px; }
}
.stats-columns{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,380px),1fr));gap:22px;margin:20px 0}.stats-filter,.stats-result{min-width:0;border:1px solid #e4ddec;border-radius:14px;padding:20px;background:#fff}.stats-filter fieldset{border:0;padding:8px 0;margin:5px 0}.stats-filter legend{font-weight:600}.stats-options{display:flex;gap:8px 16px;flex-wrap:wrap}.stats-options label,.stats-compare{display:flex;align-items:center;gap:6px;font-size:14px}.stats-metrics{display:grid;grid-template-columns:1fr 1fr;gap:10px}.stats-metrics strong{font-size:23px}.stats-map{display:block;width:100%;aspect-ratio:1;background:#f6f4fa;border:1px solid #ddd;border-radius:8px}.stats-legend{display:flex;align-items:center;gap:12px;font-size:13px}.stats-legend div{width:180px;height:16px;background:linear-gradient(to right,#f6f4fa,#00d2ff,#ff696f,#ff0000)}.stats-result h3{margin:22px 0 12px}.stats-result .owner-table{font-size:13px}.stats-result .owner-table td{overflow-wrap:anywhere}#statsForm>label{display:block;margin:15px 0 8px}#statsGeometry{max-width:420px}#statsStatus{color:#774d9a;margin:16px 0}
.stats-legend{display:block;background:#f6f4fa;padding:14px;border-radius:10px}.stats-legend canvas{display:block;width:301px;max-width:100%;height:16px}.stats-legend p{font-size:12px;margin:6px 0}.stats-legend small{display:block;color:#756b80}
