.job-link-card input {
  width: 100%;
  min-height: 43px;
  padding: 9px 11px;
  border: 1px solid #cbdde1;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}

.start-date-label { margin-top: 14px; }
.account-link {
  border-color: #8bc5c7 !important;
  background: #edfbf8 !important;
  color: #087565 !important;
}

.subscription-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  background: linear-gradient(135deg, #fff, #eefaf8);
}
.subscription-panel p:not(.eyebrow) {
  max-width: 760px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.subscription-panel button {
  min-height: 47px;
  padding: 10px 16px;
  border: 0;
  border-radius: 11px;
  font-weight: 900;
  cursor: pointer;
}
.subscription-panel .primary {
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: #fff;
}
.subscription-panel > a {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}
.ai-output {
  grid-column: 1 / -1;
  max-height: 390px;
  overflow: auto;
  margin: 0;
  padding: 16px;
  border: 1px solid #bddcdb;
  border-radius: 13px;
  background: #f7ffff;
  color: #17394b;
  white-space: pre-wrap;
  font: 600 13px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace;
}

@media (max-width: 980px) {
  .subscription-panel { grid-template-columns: 1fr 1fr; }
  .subscription-panel > div { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .header-actions a:not(.account-link) { display: none; }
  .subscription-panel { grid-template-columns: 1fr; }
  .subscription-panel > div, .ai-output { grid-column: auto; }
  .subscription-panel button, .subscription-panel > a { text-align: center; }
}

[hidden] { display: none !important; }
.renoquotes-panel { display: block; }
.renoquotes-heading { margin-bottom: 16px; }
.renoquotes-settings {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  gap: 10px;
  margin-bottom: 16px;
}
.renoquotes-settings label {
  display: grid;
  gap: 6px;
  color: #33495d;
  font-size: 11px;
}
.renoquotes-settings input,
.quote-specs input {
  width: 100%;
  min-height: 43px;
  padding: 9px 11px;
  border: 1px solid #cbdde1;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.quote-specs {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}
.quote-specs h3 { margin: 0 0 3px; font-size: 15px; }
.quote-specs label {
  display: grid;
  grid-template-columns: minmax(170px, .7fr) minmax(240px, 1.3fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid #d7e5e8;
  border-radius: 12px;
  background: #fbfdfd;
}
.quote-specs span { display: flex; justify-content: space-between; gap: 8px; }
.quote-specs small { color: var(--muted); }
.renoquotes-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.renoquotes-actions button,
.renoquotes-actions a {
  min-height: 43px;
  padding: 10px 13px;
  border: 1px solid #c9dade;
  border-radius: 10px;
  background: #fff;
  color: #254155;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
}
.renoquotes-actions .primary { border: 0; color: #fff; }
.renoquotes-actions button:disabled { opacity: .45; cursor: not-allowed; }
.renoquotes-panel .ai-output { margin-top: 14px; }
.material-edit { display: grid; gap: 7px; margin-top: 9px; }
.material-edit label { display: grid; gap: 4px; color: #617283; font-size: 10px; font-weight: 850; }
.material-edit select,
.material-edit input { width: 100%; min-height: 38px; padding: 7px 9px; border: 1px solid #cbdde1; border-radius: 9px; background: #fff; color: #122438; font-weight: 800; }
.material-edit .quantity-edit { grid-template-columns: minmax(0, 1fr) 88px; align-items: end; }
.material-specification { color: #29495d !important; font-size: 12px !important; font-weight: 800; line-height: 1.45 !important; }

@media (max-width: 680px) {
  .renoquotes-settings,
  .quote-specs label { grid-template-columns: 1fr; }
  .quote-specs span { align-items: baseline; }
  .renoquotes-actions > * { flex: 1 1 45%; }
  .renoquotes-actions .primary { flex-basis: 100%; }
}

.email-dialog {
  width: min(620px, calc(100vw - 28px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(9, 35, 51, .3);
  color: #122438;
}
.email-dialog::backdrop { background: rgba(8, 31, 45, .62); backdrop-filter: blur(3px); }
.email-dialog form { display: grid; gap: 14px; padding: 22px; }
.email-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.email-dialog-heading h2 { margin: 2px 0 4px; }
.email-dialog-heading p { margin: 0; }
.email-dialog label { display: grid; gap: 6px; color: #33495d; font-size: 12px; font-weight: 850; }
.email-dialog input,
.email-dialog textarea { width: 100%; padding: 11px 12px; border: 1px solid #c7d9df; border-radius: 11px; background: #fff; color: #122438; font: inherit; }
.email-dialog textarea { min-height: 210px; resize: vertical; line-height: 1.45; }
.dialog-close { width: 42px; height: 42px; padding: 0; border: 1px solid #d3e0e4; border-radius: 11px; background: #fff; color: #17394b; font-size: 27px; line-height: 1; }
.email-dialog-actions { display: flex; gap: 10px; }
.email-dialog-actions button { min-height: 46px; padding: 10px 18px; border: 1px solid #c7d9df; border-radius: 11px; background: #fff; color: #17394b; font-weight: 900; }
.email-dialog-actions .primary { border-color: #0878d1; background: #0878d1; color: #fff; }
.email-dialog-actions button:disabled { opacity: .55; }
#materials-email-status { min-height: 20px; margin: 0; color: #34566a; font-weight: 800; }

@media (max-width: 680px) {
  .email-dialog { width: calc(100vw - 18px); max-height: calc(100dvh - 18px); }
  .email-dialog form { padding: 18px; }
  .email-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; }
}
