*{box-sizing:border-box}html,body{margin:0;padding:0}
body{font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;line-height:1.5;color:#111;background:#fff}
.site-header{display:flex;gap:1rem;align-items:center;justify-content:flex-start;padding:1rem 1.25rem;border-bottom:1px solid #eee;background:#f9fafb;position:sticky;top:0;z-index:10;flex-wrap:wrap}
.site-header h1{margin:0}
.sub{margin:.25rem 0 0;color:#666}
.back{text-decoration:none;border:1px solid #ddd;padding:.4rem .6rem;border-radius:10px;color:#333}
.spacer{flex:1}
.btn{display:inline-block;text-decoration:none;border:1px solid #222;padding:.5rem .8rem;border-radius:12px}
.btn[hidden]{display:none}
.hidden{display:none}
main{padding:1rem 1.25rem}
.page{max-width:980px;margin:0 auto;width:100%}
.page.wide{max-width:1200px}
.site-footer{padding:1rem 1.25rem;border-top:1px solid #eee;background:#fafafa;color:#666}
.site-footer small{display:flex;align-items:center;gap:.25rem;flex-wrap:wrap;white-space:normal;overflow:visible}
.footer-brand{display:inline-flex;align-items:center;gap:.35rem;white-space:nowrap;margin-right:.75rem}
.inline-links{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap;margin-left:auto;}
.inline-links a{display:inline-flex;align-items:center;color:#333;text-decoration:none;border:1px solid transparent;padding:.15rem .35rem;border-radius:8px;}
.inline-links a:hover{background:#fff;border-color:#e5e7eb}
.people-list{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:.75rem}
.card{display:flex;gap:.75rem;align-items:center;justify-content:flex-start;text-decoration:none;border:1px solid #e5e7eb;background:#fff;padding:1rem;border-radius:16px;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.card:hover{box-shadow:0 4px 16px rgba(0,0,0,.08);transform:translateY(-1px);transition:all .15s ease}
.card .name{margin:.1rem 0 .2rem;font-size:1.05rem;color:#111}
.card .title{margin:0;color:#666}
.card-avatar{flex:0 0 auto;width:64px;height:64px;border-radius:50%;overflow:hidden;background:#f3f4f6;display:flex;align-items:center;justify-content:center}
.card-avatar img{width:100%;height:100%;object-fit:cover}
.card-body{flex:1;min-width:0}
.chevron{font-size:1.8rem;color:#bbb;margin-left:auto}
#search{width:100%;max-width:420px;border:1px solid #e5e7eb;border-radius:12px;padding:.6rem .8rem}
.tip{color:#666;margin-top:.75rem}
.error{color:#b00020}.empty{color:#666}
.page h2{margin-top:0}
pre{background:#f6f7f9;border:1px solid #e5e7eb;padding:1rem;border-radius:12px;overflow:auto}
code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace}
.form-grid{display:grid;grid-template-columns:1fr;gap:.6rem;max-width:620px}
label{display:block;font-weight:600}
input[type="text"],input[type="password"],input[type="search"],input[type="file"],input[type="email"]{width:100%;border:1px solid #e5e7eb;border-radius:10px;padding:.55rem .7rem}
.actions{display:flex;gap:.6rem;flex-wrap:wrap;margin-top:.75rem}
.btn-primary{border:1px solid #111;background:#111;color:#fff}
.btn-primary:hover{filter:brightness(1.1)}
.notice{border:1px solid #e5e7eb;background:#f9fafb;padding:.75rem;border-radius:12px}
.ok{color:green}
.warn{color:#b36b00}
.admin-table{width:100%;border-collapse:collapse;margin-top:1rem;font-size:.9rem}
.admin-table th,.admin-table td{border:1px solid #e5e7eb;padding:.6rem .65rem;text-align:left;vertical-align:top}
.admin-table tbody tr:nth-child(odd){background:#fafafa}
.admin-table-wrapper{overflow-x:auto;margin-top:1rem}
.admin-table-wrapper .admin-table{min-width:720px}
.admin-table input[type="text"],.admin-table input[type="email"]{width:100%;max-width:230px}
.flag-inputs{display:flex;flex-direction:column;gap:.25rem}
.flag-inputs label{font-weight:400;display:flex;align-items:center;gap:.35rem}
.badge{display:inline-block;padding:.2rem .55rem;border-radius:999px;font-size:.75rem;line-height:1;border:1px solid transparent}
.badge.ok{background:#e8f9ef;color:#256029;border-color:#b7e1c5}
.badge.warn{background:#fff5eb;color:#8a4b08;border-color:#f7c99d}


.settings-card{border:1px solid #e5e7eb;background:#f9fafb;padding:1rem 1.2rem;border-radius:14px;margin-bottom:1rem}
.settings-card h2{margin:0 0 .35rem 0;font-size:1.1rem}
.setting-toggle{display:flex;align-items:center;gap:.5rem;font-weight:500;margin:.35rem 0}
.setting-toggle input{width:18px;height:18px}
.job-pill{display:inline-flex;align-items:center;gap:.35rem;margin-top:.35rem;padding:.25rem .65rem;border-radius:999px;background:#e8f9ef;color:#256029;border:1px solid #b7e1c5;font-size:.8rem;font-weight:600}
.job-pill.small{font-size:.75rem;padding:.2rem .55rem;margin-top:.4rem}
.job-filter{display:flex;align-items:center;gap:.4rem;font-size:.9rem;color:#444;margin-left:1rem}
.job-filter input{width:18px;height:18px}
.page-editor-card .page-tabs{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:.75rem}
.page-editor-card .page-tabs .btn{padding:.4rem .8rem}
.page-editor-card textarea{min-height:220px;font-family:inherit;line-height:1.4;width:100%;border:1px solid #e5e7eb;border-radius:10px;padding:.55rem .7rem}
.email-template-card .template-tabs{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:.75rem}
.email-template-card .template-tabs .btn{padding:.4rem .8rem}
.email-template-card textarea{min-height:220px;font-family:inherit;line-height:1.4;width:100%;border:1px solid #e5e7eb;border-radius:10px;padding:.55rem .7rem}
.email-template-card #templatePlaceholders{margin:.35rem 0 0;color:#666}
.email-template-card .template-hint{margin:.3rem 0 0;color:#666}
.email-template-card .template-preview-toggle{margin:.55rem 0 0;display:flex;align-items:center;gap:.4rem;font-size:.9rem;font-weight:500}
.email-template-card .template-preview-toggle input{width:18px;height:18px}
.email-template-card .template-preview{margin-top:.55rem;border:1px solid #e5e7eb;border-radius:10px;padding:.8rem;background:#fff;min-height:90px;max-height:320px;overflow:auto}
.email-template-card .template-preview.hidden{display:none}
.email-template-card .template-preview-empty{color:#666;margin:0}
.email-settings-card .sub{margin:.35rem 0 0;color:#666}
.image-preview{margin-top:.6rem;padding:.4rem;border:1px solid #e5e7eb;border-radius:12px;max-width:260px;background:#fff;display:flex;align-items:center;justify-content:center}
.image-preview.hidden{display:none}
.image-preview img{max-width:100%;border-radius:10px;height:auto;display:block}
.image-actions{margin-top:.6rem}
.site-status-card .status-options{display:flex;flex-direction:column;gap:.4rem;margin:.35rem 0 .75rem}
.site-status-card .status-options label{display:flex;align-items:center;gap:.5rem;font-weight:500}
.site-status-card .status-options input[type="radio"]{width:18px;height:18px}
.site-status-card textarea{width:100%;border:1px solid #e5e7eb;border-radius:10px;padding:.55rem .7rem;font-family:inherit;line-height:1.4}
.note-card{border:1px solid #e5e7eb;background:#f9fafb;padding:1.25rem;border-radius:16px;margin-top:1.5rem}
.note-card .note-body{margin:0;line-height:1.5}
.share-card{border:1px solid #e5e7eb;background:#f9fafb;padding:1.25rem;border-radius:16px;margin-top:1.5rem}
.share-card .sub.ok{color:#256029}
.contact-card{border:1px solid #e5e7eb;background:#f9fafb;padding:1.25rem;border-radius:16px;margin-top:1.5rem}
.contact-card h2{margin-top:0}
.contact-card textarea{width:100%;border:1px solid #e5e7eb;border-radius:10px;padding:.55rem .7rem;font-family:inherit;min-height:160px}
.contact-card .sub.ok{color:#256029}

@media print {
  body:not(.owner-view) .viewer-wrap{display:none !important;}
  body.print-disabled *{display:none !important;}
  body.print-disabled::before{content:'Printing disabled for this profile.';display:block;text-align:center;padding:4rem;font-size:1.2rem;}
}

.site-header .btn{margin-left:.5rem}


.header-search{max-width:280px;width:100%;border:1px solid #e5e7eb;border-radius:12px;padding:.5rem .75rem;margin-left:1rem}

.home-header{display:flex;align-items:center;gap:.75rem;flex-wrap:nowrap;}
.home-header .site-title{margin:0;font-size:1.5rem;white-space:nowrap;}
.home-header .site-tagline{font-size:.95rem;color:#666;white-space:nowrap;}
.home-header .header-search{flex:0 0 280px;}
@media(max-width:768px){
  .home-header{flex-wrap:wrap;gap:.5rem;}
  .home-header .site-tagline{white-space:normal;}
  .home-header .header-search{flex:1 1 100%;margin-left:0;}
  .home-header .spacer{display:none;}
  .job-filter{margin-left:0;}
  .site-header{padding:0.85rem 1rem;}
  main{padding:1rem}
  .admin-table{font-size:.82rem}
}

@media(max-width:600px){
  .site-header{gap:.6rem;}
  .site-header .spacer{flex-basis:100%;height:0;}
  .site-footer small{gap:.35rem;justify-content:flex-start;}
  .footer-brand{margin-right:0;flex-basis:100%;}
  .inline-links{margin-left:0;flex-basis:100%;justify-content:flex-start;}
}
.responsive-frame{width:100%;max-width:100%}
img,.responsive-img{max-width:100%;height:auto}
iframe{max-width:100%}

.site-maintenance-overlay{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;padding:1.5rem;background:rgba(15,23,42,.9);backdrop-filter:blur(8px);color:#fff;text-align:center;z-index:9999}
.site-maintenance-overlay.hidden{display:none}
.site-maintenance-dialog{max-width:520px;width:100%;background:rgba(17,24,39,.92);padding:1.75rem;border-radius:18px;box-shadow:0 30px 60px rgba(0,0,0,.35);border:1px solid rgba(255,255,255,.08)}
.site-maintenance-title{margin:0 0 .75rem;font-size:1.6rem;letter-spacing:-.01em}
.site-maintenance-message{margin:0;font-size:1.05rem;line-height:1.6;color:rgba(255,255,255,.9)}
.site-maintenance-note{margin:1.25rem 0 0;font-size:.95rem;color:rgba(255,255,255,.75)}
.site-maintenance-link{color:#fbbf24;text-decoration:underline}
.site-maintenance-admin-banner{position:sticky;top:0;z-index:9998;background:#fff7d6;color:#7a5400;border-bottom:1px solid #f5db8c;padding:.75rem 1rem;text-align:center;font-weight:500}
.site-maintenance-admin-banner.hidden{display:none}
body.site-maintenance-locked{overflow:hidden}
