.admin-shell { max-width: 1180px; }
.admin-top { display: flex; align-items: center; gap: 20px; color: white; margin-bottom: 18px; }
.admin-nav { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.admin-nav a { color: #123c69; background: white; border: 1px solid #d8e3f0; border-radius: 999px; padding: 8px 12px; font-size: 13px; font-weight: 800; text-decoration: none; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.admin-nav a:hover { background: #eef7ff; }
.admin-logo { width: 260px; max-width: 44vw; background: white; border-radius: 20px; padding: 10px 16px; box-shadow: 0 16px 44px rgba(0,0,0,.18); }
.admin-card { padding: 18px; margin-bottom: 14px; }
.admin-card h2 { margin-bottom: 12px; }
.admin-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.overview-tile { background: white; border: 1px solid #d8e3f0; border-radius: 18px; padding: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.08); }
.overview-tile span { display: block; color: var(--muted); font-size: 12px; font-weight: 800; }
.overview-tile strong { display: block; color: #123c69; font-size: 30px; line-height: 1.1; margin-top: 4px; }
.admin-form { display: grid; gap: 12px; margin-bottom: 12px; }
.admin-form.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-layout { display: grid; grid-template-columns: 360px 1fr; gap: 14px; align-items: start; }
.crm-layout { margin-bottom: 14px; }
.admin-list { display: grid; gap: 8px; }
.event-pill { text-align: left; border: 1px solid #d8e3f0; background: #f8fbff; border-radius: 16px; padding: 12px; cursor: pointer; }
.event-pill.active { background: #123c69; color: white; border-color: #123c69; }
.event-pill strong, .event-pill span { display: block; }
.event-pill span { margin-top: 4px; font-size: 13px; opacity: .78; }
.crm-pill { width: 100%; }
.pipeline-board { display: grid; grid-template-columns: repeat(5, minmax(190px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.pipeline-column { min-width: 190px; background: #f8fbff; border: 1px solid #d8e3f0; border-radius: 16px; padding: 10px; }
.pipeline-column h3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 10px; color: #123c69; font-size: 14px; }
.pipeline-column h3 span { background: white; border: 1px solid #d8e3f0; border-radius: 999px; padding: 2px 8px; color: #52657a; font-size: 12px; }
.pipeline-items { display: grid; gap: 8px; }
.pipeline-card { display: block; width: 100%; text-align: left; border: 1px solid #d8e3f0; background: white; border-radius: 12px; padding: 10px; cursor: pointer; color: #123c69; }
.pipeline-card:hover { border-color: #8b5cf6; box-shadow: 0 8px 20px rgba(139,92,246,.12); }
.pipeline-card strong, .pipeline-card span, .pipeline-card small { display: block; }
.pipeline-card span { margin-top: 4px; color: #52657a; font-size: 12px; }
.pipeline-card small { margin-top: 5px; color: #7b8aa0; font-size: 11px; line-height: 1.35; }
.small-text { font-size: 12px; margin: 4px 0; }
.inquiry-card { cursor: default; }
.inquiry-head { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.inquiry-head .inquiry-date { margin-top: 0; white-space: nowrap; font-size: 11px; }
.inquiry-status { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: 12px; font-weight: 800; color: #52657a; }
.inquiry-status select { width: auto; min-width: 150px; padding: 7px 9px; border-radius: 10px; border: 1px solid #cbd9e8; background: white; color: #123c69; }
.detail-status { max-width: 360px; }
.empty-detail { color: var(--muted); padding: 18px; background: #f8fbff; border-radius: 18px; }
.detail-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.detail-head p { margin: 4px 0 0; color: var(--muted); }
.link-btn { text-decoration: none; white-space: nowrap; }
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.admin-stats div { background: #f8fbff; border: 1px solid #d8e3f0; border-radius: 16px; padding: 12px; }
.admin-stats span { display: block; color: var(--muted); font-size: 12px; font-weight: 800; }
.admin-stats strong { display: block; color: #123c69; font-size: 28px; }
.inquiry-stats strong { font-size: 17px; overflow-wrap: anywhere; }
.admin-subsection { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.admin-subsection h3 { margin: 0 0 10px; color: #123c69; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.detail-grid div { background: #f8fbff; border: 1px solid #d8e3f0; border-radius: 14px; padding: 10px; }
.detail-grid span { display: block; color: var(--muted); font-size: 12px; font-weight: 800; }
.detail-grid strong { display: block; color: #123c69; font-size: 14px; margin-top: 3px; overflow-wrap: anywhere; }
.note-box { background: #f8fbff; border: 1px solid #d8e3f0; border-radius: 14px; padding: 12px; color: #26384d; white-space: pre-wrap; }
.user-list { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.user-list code { background: #eef7ff; color: #12528d; padding: 6px 8px; border-radius: 999px; }
.muted { color: var(--muted); }
@media(max-width:760px){
  .admin-top { display: grid; gap: 8px; margin-bottom: 10px; }
  .admin-nav { margin-left: 0; }
  .admin-nav a { padding: 7px 10px; }
  .admin-logo { width: 100%; max-width: 100%; border-radius: 16px; }
  .admin-top h1 { font-size: 42px; }
  .admin-overview { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
  .overview-tile { padding: 11px; border-radius: 14px; }
  .overview-tile strong { font-size: 24px; }
  .admin-layout, .admin-form.two { grid-template-columns: 1fr; }
  .pipeline-board { grid-template-columns: repeat(5, 220px); margin-right: -12px; }
  .admin-card { padding: 12px; border-radius: 18px; }
  .detail-head { display: grid; }
  .admin-stats { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 7px; }
  .admin-stats div { padding: 9px; }
  .admin-stats strong { font-size: 22px; }
  .inquiry-stats { grid-template-columns: 1fr; }
  .inquiry-stats strong { font-size: 16px; }
  .detail-grid { grid-template-columns: 1fr; }
}

.grant-row {border:1px solid #d8e3f0;border-radius:12px;padding:12px;margin-top:12px;min-width:0;}
.grant-heading {display:flex;align-items:center;gap:12px;flex-wrap:wrap;}
.grant-heading > div {flex:1;min-width:180px;overflow-wrap:anywhere;}
.grant-heading small {display:block;color:#526379;margin-top:4px;}
.grant-state {background:#eef7ff;color:#123c69;border-radius:8px;padding:6px 10px;font-weight:600;}
.grant-row summary {cursor:pointer;padding:10px 0;color:#123c69;}
.grant-row input {min-width:0;max-width:100%;box-sizing:border-box;}
