:root{
  --bg:#f3f5f4;
  --surface:#ffffff;
  --surface-2:#e8ecea;
  --ink:#303434;
  --muted:#667172;
  --line:#d3dada;
  --navy:#2f5268;
  --blue:#3f7472;
  --blue-2:#dce7e5;
  --green:#2f6f55;
  --yellow:#946a22;
  --red:#983f3f;
  --shadow:0 20px 50px rgba(36,54,58,.10);
  --radius:22px;
  --radius-sm:14px;
  --container:min(1180px,calc(100% - 40px));
}
*{box-sizing:border-box}
html{background:var(--bg)}
body{
  margin:0;
  min-height:100vh;
  background:
    radial-gradient(circle at 84% 7%,rgba(63,116,114,.11),transparent 28rem),
    linear-gradient(180deg,#fafbfa 0%,var(--bg) 30rem);
  color:var(--ink);
  font-family:Inter,system-ui,sans-serif;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
button,input,select,textarea{font:inherit}
a{color:inherit;text-decoration:none}

main{width:var(--container);margin:0 auto;padding:42px 0 88px}
.login-wrap{min-height:calc(100vh - 160px);display:grid;place-items:center}
.login-card{
  width:min(470px,100%);
  background:rgba(255,255,255,.96);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:32px;
  box-shadow:0 26px 70px rgba(36,54,58,.12);
}
.login-card h1,.page-head h1,.panel h2{
  font-family:Manrope,sans-serif;
  letter-spacing:-.045em;
  line-height:1.04;
  margin:0;
}
.login-card h1{font-size:clamp(2.35rem,7vw,3.25rem)}
.login-card>p:not(.eyebrow){color:var(--muted);font-size:1rem;margin:16px 0 24px}
.eyebrow{
  margin:0 0 10px;
  color:var(--blue);
  font-size:.76rem;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
}

label{display:flex;flex-direction:column;gap:7px;font-size:.84rem;font-weight:800}
input,select,textarea{
  width:100%;
  border:1px solid var(--line);
  border-radius:11px;
  background:#fff;
  padding:12px 13px;
  color:var(--ink);
  outline:none;
  transition:border-color .16s ease,box-shadow .16s ease,background .16s ease;
}
textarea{resize:vertical}
input:focus,select:focus,textarea:focus{
  border-color:var(--blue);
  box-shadow:0 0 0 3px rgba(63,116,114,.14);
  background:#fffdfa;
}
.primary,.ghost{
  border-radius:12px;
  padding:12px 16px;
  font-weight:800;
  cursor:pointer;
  transition:transform .18s ease,background .18s ease,border-color .18s ease;
}
.primary:hover,.ghost:hover{transform:translateY(-1px)}
.primary{border:0;background:var(--navy);color:#fff}
.primary:hover{background:#263f50}
.ghost{background:rgba(255,255,255,.45);border:1px solid var(--line);color:var(--ink)}
.ghost:hover{border-color:#aebbbb}
.login-card .primary{width:100%;margin-top:17px}
.error{color:var(--red);min-height:1.4em;font-size:.84rem;margin-bottom:0}

.page-head{
  display:flex;
  justify-content:space-between;
  gap:28px;
  align-items:flex-end;
  margin:18px 0 28px;
}
.page-head h1{font-size:clamp(3rem,6vw,5.1rem)}
.page-head p:last-child{color:var(--muted);max-width:760px;margin:12px 0 0;font-size:1.02rem}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:24px}
.stats article{
  background:rgba(255,255,255,.94);
  border:1px solid var(--line);
  border-radius:18px;
  padding:19px;
  box-shadow:0 10px 28px rgba(36,54,58,.045);
}
.stats span{font-size:.74rem;color:var(--muted);text-transform:uppercase;letter-spacing:.09em;font-weight:800}
.stats strong{display:block;font-family:Manrope,sans-serif;font-size:2.15rem;letter-spacing:-.04em;margin-top:3px}

.panel{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:24px;
  margin:20px 0;
  box-shadow:0 14px 36px rgba(36,54,58,.055);
}
.panel-head{display:flex;justify-content:space-between}
.panel h2{font-size:2rem}
.form-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-top:18px}
.wide{grid-column:1/-1}
.form-actions{display:flex;flex-direction:row;gap:10px}

.toolbar{
  display:grid;
  grid-template-columns:1.6fr .7fr .7fr;
  gap:11px;
  margin:22px 0 18px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:16px;
  background:rgba(255,255,255,.72);
}
.message{min-height:1.4em;color:var(--muted);font-size:.88rem;margin:0 0 8px}

.pipeline{display:grid;gap:15px}
.lead-card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 12px 34px rgba(36,54,58,.055);
}
.lead-summary{padding:22px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px;align-items:start}
.lead-title h2{font-family:Manrope,sans-serif;font-size:1.52rem;line-height:1.12;margin:0;letter-spacing:-.035em}
.lead-title p{margin:6px 0 0;color:var(--muted);font-size:.91rem}
.badges{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}
.badge{
  border-radius:999px;
  padding:5px 9px;
  background:var(--surface-2);
  font-size:.7rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.badge.high{background:#f5d5cf;color:#7d302e}
.badge.fit{background:#dfeee6;color:#2f6f55}
.badge.due{background:#f5e6bd;color:#76531c}
.badge.overdue{background:#f3cece;color:#8d3030}
.next{
  min-width:230px;
  max-width:330px;
  background:#eef2f1;
  border-left:3px solid var(--blue);
  border-radius:0 12px 12px 0;
  padding:13px 15px;
}
.next span{display:block;color:var(--blue);font-size:.7rem;text-transform:uppercase;letter-spacing:.09em;font-weight:900}
.next p{margin:4px 0 0;font-size:.89rem}

.card-links{display:flex;gap:8px;flex-wrap:wrap;padding:0 22px 18px}
.card-links a{
  border:1px solid var(--line);
  border-radius:10px;
  padding:7px 10px;
  background:rgba(255,255,255,.45);
  font-size:.78rem;
  font-weight:800;
}
.card-links a:hover{border-color:var(--blue);color:var(--blue)}

details{border-top:1px solid var(--line)}
summary{cursor:pointer;list-style:none;padding:15px 22px;font-weight:800;font-size:.85rem}
summary::-webkit-details-marker{display:none}
summary:after{content:"+";float:right;color:var(--blue);font-size:1.2rem}
details[open] summary:after{content:"–"}
.details-body{padding:0 22px 22px}
.edit-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.notes{margin-top:20px}
.notes h3{font-family:Manrope,sans-serif;font-size:1rem;margin:0 0 8px}
.note{padding:11px 0;border-top:1px solid #e3e9e8}
.note:first-of-type{border-top:0}
.note small{color:var(--muted)}
.note p{margin:4px 0 0}
.note-form{display:grid;grid-template-columns:.55fr 1.9fr .7fr auto;gap:9px;margin-top:13px;align-items:end}
.save-row{display:flex;gap:9px;justify-content:flex-end;margin-top:15px}
.empty{
  background:var(--surface);
  border:1px dashed var(--line);
  border-radius:18px;
  padding:38px;
  text-align:center;
  color:var(--muted);
}

@media(max-width:850px){
  :root{--container:min(100% - 28px,1180px)}
  .stats{grid-template-columns:1fr 1fr}
  .form-grid,.edit-grid{grid-template-columns:1fr 1fr}
  .toolbar{grid-template-columns:1fr}
  .lead-summary{grid-template-columns:1fr}
  .next{max-width:none}
  .note-form{grid-template-columns:1fr}
  .page-head{align-items:flex-start;flex-direction:column}
}
@media(max-width:560px){
  main{padding-top:26px}
  .stats{grid-template-columns:1fr 1fr}
  .stats article{padding:15px}
  .form-grid,.edit-grid{grid-template-columns:1fr}
  .page-head{margin-top:8px}
  .page-head .primary{width:100%}
  .lead-summary{padding:18px}
  .card-links{padding:0 18px 16px}
  .details-body{padding:0 18px 18px}
  .login-card{padding:24px}
  input,select,textarea{font-size:16px}
}
@media(prefers-reduced-motion:reduce){
  .primary,.ghost{transition:none}
}


/* Owner sign-in and password-reset controls */
.password-field{
  position:relative;
  display:block;
}
.password-field input{
  padding-right:48px;
}
.password-toggle{
  position:absolute;
  top:50%;
  right:7px;
  width:38px;
  height:38px;
  transform:translateY(-50%);
  border:0;
  border-radius:9px;
  background:transparent;
  color:var(--muted);
  display:grid;
  place-items:center;
  cursor:pointer;
}
.password-toggle:hover,
.password-toggle:focus-visible{
  background:var(--surface-2);
  color:var(--navy);
  outline:none;
}
.password-toggle svg{
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
}
.password-toggle.is-showing:after{
  content:"";
  position:absolute;
  width:23px;
  height:2px;
  background:currentColor;
  transform:rotate(-45deg);
  border-radius:2px;
}
.text-button{
  width:100%;
  margin-top:10px;
  padding:8px 10px;
  border:0;
  background:transparent;
  color:var(--blue);
  font-weight:800;
  cursor:pointer;
}
.text-button:hover{text-decoration:underline}
.error.neutral{color:var(--muted)}
.success-message{color:var(--green)!important}


/* Login polish: keep credentials and reset link visually normal-weight. */
.login-card input,
.login-card select,
.login-card textarea{
  font-weight:400;
}
.login-card .text-button{
  font-weight:400;
}


/* Give stacked login fields clearer separation. */
.login-card label + label{
  margin-top:14px;
}


/* Workspace sweep 2 — consistent controls, chevrons, editors and notes. */
#app input,
#app select,
#app textarea,
#app option{
  font-weight:400;
}

#app select{
  -webkit-appearance:none;
  appearance:none;
  padding-right:44px;
  background-color:#fff;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23667172' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 16px center;
  background-size:14px 14px;
}

#app textarea{
  height:132px;
  min-height:132px;
  max-height:132px;
  overflow-y:auto;
  resize:none;
  line-height:1.45;
}

details>summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding-right:24px;
}
details>summary:after{
  content:"";
  flex:0 0 auto;
  width:8px;
  height:8px;
  margin-right:4px;
  border-right:2px solid var(--blue);
  border-bottom:2px solid var(--blue);
  transform:rotate(45deg);
  transition:transform .16s ease;
}
details[open]>summary:after{
  content:"";
  transform:rotate(225deg);
}

.editor-section{
  padding-top:20px;
}
.editor-section+ .editor-section{
  margin-top:20px;
  border-top:1px solid #e3e9e8;
}
.editor-section h3{
  margin:0 0 14px;
  font-family:Manrope,sans-serif;
  font-size:1rem;
  letter-spacing:-.015em;
}
.links-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.note-list{
  margin-bottom:16px;
}
.empty-note{
  color:var(--muted);
  padding:10px 0 14px;
}
.note-form{
  display:grid;
  grid-template-columns:1fr;
  gap:13px;
  margin-top:0;
  align-items:stretch;
}
.note-meta-grid{
  display:grid;
  grid-template-columns:minmax(0,.7fr) minmax(0,1fr);
  gap:12px;
}
.note-entry{
  width:100%;
}
.note-actions{
  display:flex;
  justify-content:flex-end;
}
.note-actions .primary{
  min-width:120px;
}

.toolbar-field{
  gap:5px;
}
.toolbar-field>span{
  color:var(--muted);
  font-size:.7rem;
  font-weight:700;
  letter-spacing:.07em;
  text-transform:uppercase;
}
.toolbar-field input,
.toolbar-field select{
  font-weight:400;
}

@media(max-width:850px){
  .links-grid,
  .note-meta-grid{
    grid-template-columns:1fr;
  }
}


/* Workspace sweep 3 — final layout, clickable summaries and responsive polish. */
.is-authenticated .brand small{
  display:none;
}

.page-head{
  margin-top:10px;
}
.page-head h1{
  font-size:clamp(2.8rem,5vw,4.35rem);
}
.page-head .eyebrow{
  margin-bottom:7px;
}

.stats .stat-card{
  appearance:none;
  width:100%;
  text-align:left;
  color:var(--ink);
  font:inherit;
  background:rgba(255,255,255,.94);
  border:1px solid var(--line);
  border-radius:18px;
  padding:19px;
  box-shadow:0 10px 28px rgba(36,54,58,.045);
  cursor:pointer;
  transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease,background .16s ease;
}
.stats .stat-card:hover{
  transform:translateY(-1px);
  border-color:#b7c5c4;
  box-shadow:0 14px 34px rgba(36,54,58,.075);
}
.stats .stat-card:focus-visible{
  outline:3px solid rgba(63,116,114,.22);
  outline-offset:2px;
}
.stats .stat-card.is-active{
  border-color:var(--blue);
  background:#f3f8f7;
  box-shadow:0 0 0 3px rgba(63,116,114,.10);
}
.stats .stat-card span{
  display:block;
}
.stats .stat-card strong{
  display:block;
}
.stats .stat-card small{
  display:block;
  margin-top:2px;
  color:var(--muted);
  font-size:.72rem;
  font-weight:500;
}

.toolbar{
  grid-template-columns:minmax(240px,1.45fr) repeat(3,minmax(135px,.65fr)) auto;
  align-items:end;
  gap:11px;
  position:relative;
}
.toolbar-clear{
  height:46px;
  min-width:70px;
  padding:0 14px;
  border:1px solid var(--line);
  border-radius:11px;
  background:#fff;
  color:var(--muted);
  font-weight:600;
  cursor:pointer;
}
.toolbar-clear:hover{
  border-color:#aebbbb;
  color:var(--ink);
}
.pipeline-meta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  min-height:24px;
  margin:-5px 2px 9px;
  color:var(--muted);
  font-size:.82rem;
  font-weight:600;
}

.details-body{
  padding-top:2px;
}
.editor-section:first-child{
  padding-top:12px;
}
.save-row{
  padding-top:18px;
  margin-top:20px;
  border-top:1px solid #e3e9e8;
}
.notes{
  margin-top:22px;
}
.note small{
  font-size:.76rem;
  font-weight:500;
}
.note p{
  font-weight:400;
  white-space:pre-wrap;
}
.card-links a{
  font-weight:650;
}
.next p{
  font-weight:400;
}

#app input::placeholder,
#app textarea::placeholder{
  color:#8a9494;
  font-weight:400;
}

@media(max-width:1050px){
  .toolbar{
    grid-template-columns:1.4fr 1fr 1fr;
  }
  .toolbar-search{
    grid-column:1 / -1;
  }
  .toolbar-clear{
    width:100%;
  }
}
@media(max-width:850px){
  .toolbar{
    grid-template-columns:1fr 1fr;
  }
  .toolbar-search{
    grid-column:1 / -1;
  }
}
@media(max-width:560px){
  .stats{
    gap:10px;
  }
  .stats .stat-card{
    padding:14px;
    border-radius:15px;
  }
  .stats .stat-card strong{
    font-size:1.8rem;
  }
  .stats .stat-card small{
    font-size:.67rem;
  }
  .toolbar{
    grid-template-columns:1fr;
    padding:12px;
  }
  .toolbar-search{
    grid-column:auto;
  }
  .toolbar-clear{
    height:44px;
  }
  .save-row,
  .note-actions{
    justify-content:stretch;
  }
  .save-row .primary,
  .save-row .ghost,
  .note-actions .primary{
    flex:1;
    width:100%;
  }
}


/* Owner portal navigation, loading shell, website controls, files and handbook. */
.workspace-loading{
  min-height:calc(100vh - 160px);
  display:grid;
  place-items:center;
  align-content:center;
  gap:12px;
  color:var(--muted);
}
.workspace-loading[hidden]{display:none}
.workspace-loader{
  width:28px;
  height:28px;
  border:3px solid #d8e0df;
  border-top-color:var(--blue);
  border-radius:50%;
  animation:owner-spin .8s linear infinite;
}
.workspace-loading p{margin:0;font-size:.84rem}
@keyframes owner-spin{to{transform:rotate(360deg)}}

.login-card{
  width:min(420px,100%);
  padding:28px;
}
.login-card h1{font-size:clamp(2rem,6vw,2.7rem)}
.login-card>p:not(.eyebrow){font-size:.93rem;margin:13px 0 22px}

.workspace-panel[hidden]{display:none}
.workspace-panel.active{display:block}
.workspace-page-head{margin-top:10px}

.workspace-link-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
}

.owner-settings-grid{
  display:grid;
  grid-template-columns:minmax(0,1.6fr) minmax(270px,.75fr);
  gap:18px;
  align-items:start;
}
.owner-setting-card,
.handbook-card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:20px;
  padding:24px;
  box-shadow:0 12px 34px rgba(36,54,58,.055);
}
.owner-setting-card h2,
.handbook-card h2{
  margin:0;
  font-family:Manrope,sans-serif;
  font-size:1.45rem;
  letter-spacing:-.03em;
}
.owner-setting-card p,
.handbook-card p{color:var(--muted)}
.setting-card-head{
  display:flex;
  justify-content:space-between;
  gap:24px;
  align-items:flex-start;
}
.setting-card-head>div{max-width:650px}
.toggle-row{
  display:flex;
  flex-direction:row;
  align-items:center;
  gap:9px;
  font-weight:600;
  cursor:pointer;
}
.toggle-row input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.toggle-switch{
  width:44px;
  height:24px;
  border-radius:999px;
  background:#cfd8d7;
  position:relative;
  transition:background .16s ease;
}
.toggle-switch:after{
  content:"";
  position:absolute;
  width:18px;
  height:18px;
  top:3px;
  left:3px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 2px 6px rgba(0,0,0,.16);
  transition:transform .16s ease;
}
.toggle-row input:checked + .toggle-switch{background:var(--blue)}
.toggle-row input:checked + .toggle-switch:after{transform:translateX(20px)}

.schedule-summary{
  margin:18px 0 16px;
  padding:12px 14px;
  border-radius:12px;
  background:#eef4f3;
  color:var(--navy);
  font-weight:700;
  font-size:.9rem;
}
.time-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.schedule-days{margin-top:18px}
.schedule-label-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  margin-bottom:10px;
  color:var(--muted);
  font-size:.78rem;
  font-weight:700;
}
.schedule-presets{display:flex;gap:6px}
.preset{
  border:1px solid var(--line);
  background:#fff;
  color:var(--muted);
  border-radius:999px;
  padding:5px 9px;
  font:inherit;
  font-size:.72rem;
  cursor:pointer;
}
.preset:hover{border-color:#aebbbb;color:var(--ink)}
.day-picker{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:7px;
}
.day-picker label{cursor:pointer}
.day-picker input{position:absolute;opacity:0;pointer-events:none}
.day-picker span{
  display:block;
  text-align:center;
  padding:9px 5px;
  border:1px solid var(--line);
  border-radius:9px;
  background:#fff;
  color:var(--muted);
  font-size:.75rem;
  font-weight:600;
}
.day-picker input:checked + span{
  border-color:var(--blue);
  background:#edf5f3;
  color:var(--navy);
}
.setting-actions{
  display:flex;
  align-items:center;
  gap:14px;
  margin-top:20px;
}
.setting-status{
  color:var(--green);
  font-size:.82rem;
  font-weight:600;
}
.setting-status.is-error{color:var(--red)}
.setting-note{
  display:grid;
  gap:3px;
  padding:13px 14px;
  border-radius:12px;
  background:#f4f6f5;
}
.setting-note strong{font-size:.8rem}
.setting-note span{color:var(--muted);font-size:.84rem}

.resource-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.resource-card{
  display:grid;
  gap:5px;
  min-height:150px;
  align-content:start;
  padding:20px;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--surface);
  box-shadow:0 10px 28px rgba(36,54,58,.045);
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;
}
.resource-card:hover{
  transform:translateY(-2px);
  border-color:#b8c5c4;
  box-shadow:0 14px 34px rgba(36,54,58,.075);
}
.resource-card>span,
.handbook-card>span{
  color:var(--blue);
  font-size:.7rem;
  font-weight:800;
  letter-spacing:.09em;
  text-transform:uppercase;
}
.resource-card strong{
  font-family:Manrope,sans-serif;
  font-size:1.15rem;
  letter-spacing:-.02em;
}
.resource-card small{color:var(--muted);font-size:.8rem}

.handbook-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
.handbook-card p{margin-bottom:0}
.handbook-card code{
  padding:2px 5px;
  border-radius:5px;
  background:#eef1f0;
  font-size:.82em;
}

@media(max-width:1000px){
  .owner-settings-grid{grid-template-columns:1fr}
  .resource-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:700px){
  .resource-grid,
  .handbook-grid{grid-template-columns:1fr}
  .setting-card-head{flex-direction:column}
  .time-grid{grid-template-columns:1fr}
  .day-picker{grid-template-columns:repeat(4,1fr)}
  .schedule-label-row{align-items:flex-start;flex-direction:column}
}
@media(max-width:560px){
  .owner-setting-card,.handbook-card{padding:18px}
  .setting-actions{align-items:stretch;flex-direction:column}
  .setting-actions .primary{width:100%}
}
@media(prefers-reduced-motion:reduce){
  .workspace-loader{animation:none}
}


/* Critical auth visibility: author layout styles must never override hidden state. */
#login-panel[hidden],
#app[hidden],
#loading-panel[hidden]{
  display:none !important;
}


/* 2026-10-04 owner inquiry inbox */
.inbox-count{
  padding:9px 12px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(255,255,255,.76);
  color:var(--muted);
  font-size:.78rem;
  font-weight:800;
  white-space:nowrap;
}

.inquiry-notice{
  width:100%;
  margin:0 0 18px;
  padding:14px 16px;
  border:1px solid #d7b8a8;
  border-radius:14px;
  background:#fff4ee;
  color:var(--ink);
  text-align:left;
  cursor:pointer;
}
.inquiry-notice[hidden]{display:none}
.inquiry-notice strong{display:block;color:#8b472e}
.inquiry-notice span{display:block;margin-top:2px;color:var(--muted);font-size:.84rem}

.inquiry-list{display:grid;gap:15px}
.inquiry-card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:20px;
  padding:22px;
  box-shadow:0 12px 34px rgba(36,54,58,.055);
}
.inquiry-card.is-new{border-color:#c7a18e;box-shadow:0 12px 34px rgba(182,91,55,.08)}
.inquiry-card-head h2{
  margin:10px 0 0;
  font-family:Manrope,sans-serif;
  font-size:1.5rem;
  line-height:1.12;
  letter-spacing:-.035em;
}
.inquiry-card-head p{margin:6px 0 0;color:var(--muted);font-size:.88rem}
.inquiry-email-status{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:5px 9px;
  background:#e1eee9;
  color:#356652;
  font-size:.68rem;
  font-weight:800;
}
.inquiry-email-status.failed{background:#f3cece;color:#8d3030}

.inquiry-detail-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:18px;
}
.inquiry-detail-grid>div{
  padding:12px 14px;
  border-radius:12px;
  background:#eef2f1;
}
.inquiry-detail-grid span,
.inquiry-message-body>span{
  display:block;
  color:var(--blue);
  font-size:.69rem;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.inquiry-detail-grid strong{display:block;margin-top:3px;font-size:.88rem;overflow-wrap:anywhere}

.inquiry-message-body{
  margin-top:12px;
  padding:15px 16px;
  border-left:3px solid var(--blue);
  border-radius:0 12px 12px 0;
  background:#f5f7f6;
}
.inquiry-message-body p{margin:6px 0 0;white-space:pre-wrap;line-height:1.6}

.inquiry-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:16px;
}
.inquiry-contact{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  font-size:.82rem;
}
.inquiry-contact-primary{background:var(--navy)!important;color:#fff!important;border-color:transparent!important}
.inquiry-empty{
  display:flex;
  flex-direction:column;
  gap:5px;
  padding:28px;
  border:1px dashed #b9c5c3;
  border-radius:16px;
  color:var(--muted);
  background:rgba(255,255,255,.5);
}
.inquiry-empty strong{color:var(--ink)}

@media(max-width:850px){
  .inquiry-detail-grid{grid-template-columns:1fr}
}

@media(max-width:560px){
  .inbox-count{align-self:flex-start}
  .inquiry-card{padding:18px}
  .inquiry-actions{display:grid;grid-template-columns:1fr 1fr}
  .inquiry-actions>*{width:100%}
}
