/* The field kit: clear, readable instrument panels alongside the guide. Uses
   the editorial surface tokens shared by the screens and sheets. */
:is([data-screen="tools"],.documents-screen,.admin-screen) .screen-intro {
  min-height: 0; padding: clamp(2rem,5vw,4rem) var(--atlas-gutter) 1.6rem;
  background: var(--atlas-paper); color: var(--atlas-ink); border-bottom: 1px solid var(--atlas-rule);
}
:is([data-screen="tools"],.documents-screen,.admin-screen) .screen-intro h1 {
  font: normal clamp(2.75rem,7.7vw,5rem)/1 var(--atlas-type); letter-spacing: -.055em; text-transform: none;
}
:is([data-screen="tools"],.documents-screen,.admin-screen) .screen-intro .eyebrow { color: var(--atlas-jade); }
.documents-screen .documents-intro::after { content: none; }
.screen .tools-grid { gap: .7rem; padding-inline: var(--atlas-gutter); }
.tools-grid .tool-card {
  min-height: 9.25rem; padding: 1rem; gap: .4rem; border: 1px solid var(--atlas-rule); border-radius: .9rem;
  background: var(--atlas-sheet); color: var(--atlas-ink);
}
.tools-grid .tool-card:is(.is-dark,.is-lime,.is-sea,.is-night) { background: var(--atlas-wash); color: var(--atlas-ink); }
.tools-grid .tool-card > span { min-height: 0; padding: .3rem .5rem; margin-bottom: .8rem; color: var(--atlas-jade); border: 1px solid #96ac9f; border-radius: .35rem; font: 650 .85rem/1.15 system-ui,sans-serif; }
.tools-grid .tool-card strong { font: normal clamp(1.25rem,3vw,1.65rem)/1.1 var(--atlas-type); letter-spacing: -.035em; text-transform: none; }
.tools-grid .tool-card small { margin: 0; font-size: .875rem; color: #415950; line-height: 1.4; }
.screen .weather-panel {
  margin: 1.25rem var(--atlas-gutter); padding: clamp(1rem,3vw,1.75rem);
  border: 1px solid #224e43; border-radius: 1.15rem; background: #224e43; color: #fbfaf3;
  display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .8rem;
}
.weather-panel .weather-panel-top { grid-column: 1/-1; align-items: center; gap: .8rem; }
.weather-panel .weather-panel-top .micro-label, .weather-panel .tools-oman-clock small { color: #dfebbc; }
.screen .weather-panel select {
  color: #172d29; background: #f8f7f1; border: 1px solid #e7ecdc; border-radius: .5rem;
  min-height: 44px; padding: .3rem .65rem; font: normal 1.3rem/1.2 var(--atlas-type);
}
.screen .weather-panel select:focus-visible { outline: 3px solid #d5fc00; outline-offset: 3px; }
.weather-panel .weather-icon { color: #dfebbc; font-size: 2.6rem; }
.weather-panel .tools-oman-clock { align-self: center; border: 0; padding: 0; margin: .5rem 0; }
.weather-panel .tools-oman-clock strong { font-size: clamp(1.55rem,4.6vw,2.75rem); color: #fffef8; }
.weather-panel .tools-oman-clock small, .weather-panel .tools-oman-clock span { font-size: .75rem; }
.weather-panel .big-temperature { align-self: center; margin: .5rem 0; color: #fffef8; font: normal clamp(2.75rem,10vw,5rem)/1 var(--atlas-type); letter-spacing: -.06em; }
.weather-panel .weather-stats { grid-column: 1/-1; border-top: 1px solid #7f9c8d; }
.weather-panel .weather-stats div { border-color: #759185; padding: .7rem .5rem .15rem; }
.weather-panel .weather-stats span { color: #e4eddf; font-size: .75rem; }
.weather-panel .weather-stats strong { color: white; font-size: .875rem; line-height: 1.35; }
.weather-panel .weather-credit { grid-column: 1/-1; color: #e4eddf; margin-top: 0; font-size: .75rem; line-height: 1.45; }
.weather-panel .weather-credit:empty { display: none; }
.screen .install-card { border: 1px solid var(--atlas-rule); border-radius: .85rem; }

.details-dialog :is(.money-dialog-hero,.tides-dialog-hero,.moon-dialog-hero) {
  padding: 1.4rem clamp(1.2rem,4vw,2rem); border: 0; background: #244b42; color: #fffefa;
}
.details-dialog :is(.money-dialog-hero,.tides-dialog-hero,.moon-dialog-hero) p { color: #e3efc6; font-size: .75rem; }
.details-dialog :is(.exchange-rate-grid,.tide-current-card,.tide-event-list article,.moon-tip,.moon-stats) {
  border: 1px solid var(--atlas-rule); border-radius: .75rem; overflow: hidden; color: var(--atlas-ink);
}
.details-dialog :is(.exchange-rate-grid,.tide-current-card,.moon-stats) > div {
  min-width: 0; border-color: var(--atlas-rule); background: var(--atlas-sheet); color: var(--atlas-ink);
}
.details-dialog :is(.exchange-rate-grid,.tide-current-card) > div:last-child,
.details-dialog .tide-event-list article.is-high, .details-dialog .moon-tip { background: var(--atlas-wash); color: var(--atlas-ink); }
.details-dialog :is(.tide-current-card,.exchange-rate-grid,.currency-converter,.tide-event-list,.moon-stats) strong,
.details-dialog .currency-converter output { font-variant-numeric: tabular-nums; }
.details-dialog :is(.exchange-rate-grid,.tide-current-card,.moon-stats) span,
.details-dialog :is(.tide-location-label,.tide-event-list article > span) { font-size: .75rem; color: var(--atlas-jade); }
.details-dialog :is(.tide-event-list article > small,.tide-current-card small,.exchange-updated,.tide-status) { font-size: .84rem; }
.details-dialog .tide-event-list article:not(.is-high) { background: var(--atlas-sheet); }
.details-dialog :is(.currency-converter,.tide-warning,.moon-now-card) { border-radius: .75rem; background: var(--atlas-ink); color: #fffefa; }
.details-dialog :is(.currency-converter output,.moon-now-card .moon-symbol,.tide-warning strong,.moon-now-card div > span) { color: #e0efa8; }
.details-dialog .currency-input-row input, .details-dialog .currency-input-row select, .details-dialog #tide-location {
  color: var(--atlas-ink); border: 1px solid #92a79a; border-radius: .45rem; background: var(--atlas-sheet); font-weight: 600;
}
.details-dialog .currency-input-row { gap: .4rem; grid-template-columns: minmax(0,1fr) auto; }
.details-dialog :is(.tide-loading,.tide-error) { color: var(--atlas-ink); border: 1px solid var(--atlas-rule); border-radius: .7rem; font-size: .94rem; }
.details-dialog .tide-error { background: #f5ebda; }
.details-dialog .tide-warning strong, .details-dialog .moon-tip strong { font-size: .8rem; }
.details-dialog .tide-warning p, .details-dialog .moon-tip p { font-size: .94rem; }
.details-dialog :is(.tide-source,.moon-source,.exchange-disclaimer) { color: #47594f; font-size: .8125rem; }
.details-dialog .moon-now-card { grid-template-columns: auto minmax(0,1fr); gap: .8rem; }
.details-dialog .moon-symbol { width: clamp(3.5rem,16vw,6rem); height: auto; aspect-ratio: 1; font-size: clamp(3.5rem,16vw,6rem); }
.details-dialog .moon-now-card div > strong { font: normal clamp(1.55rem,4.8vw,2.4rem)/1.1 var(--atlas-type); letter-spacing: -.035em; text-transform: none; }
.details-dialog .moon-now-card div > small { font-size: .875rem; }
.details-dialog .moon-stats { margin-top: .5rem; }
.details-dialog .moon-stats > div { padding: .7rem; }

.documents-screen :is(.document-upload-card,.document-card,.document-empty,.document-production-warning),
.admin-screen :is(.admin-editor,.admin-dashboard,.admin-empty,.admin-update-card,.admin-production-note) {
  border: 1px solid var(--atlas-rule); border-radius: .85rem;
}
.documents-screen :is(.document-upload-card,.document-production-warning), .admin-screen :is(.admin-editor,.admin-dashboard,.admin-production-note) { margin-inline: var(--atlas-gutter); }
.documents-screen :is(.document-upload-head h2,.document-production-warning h2,.document-library .section-heading h2,.document-empty strong),
.admin-screen .admin-update-card h3 { font: normal clamp(1.55rem,4.2vw,2.2rem)/1.12 var(--atlas-type); letter-spacing: -.035em; text-transform: none; }
.documents-screen .document-security-note, .screen .owner-entry { border: 0; background: var(--atlas-wash); color: var(--atlas-ink); }
.documents-screen :is(.document-security-note p,.document-empty p,.document-production-warning p:last-child), .admin-screen :is(.admin-empty p,.admin-update-card p) { font-size: .9375rem; line-height: 1.5; }
.documents-screen :is(.document-upload-head > span,.document-count,.document-mark) { background: var(--atlas-wash); border: 1px solid #a0b3a5; color: var(--atlas-jade); }
.documents-screen .document-upload-card select, .admin-screen .admin-editor :is(select,input,textarea) {
  background: var(--atlas-sheet); color: var(--atlas-ink); border: 1px solid #889c8e; border-radius: .5rem; font-size: 1rem; font-weight: 500;
}
.documents-screen .document-file-button { background: var(--atlas-jade); color: white; border: 1px solid transparent; border-radius: .55rem; }
.documents-screen .document-upload-card:has(#document-upload:focus-visible) .document-file-button { outline: 3px solid var(--atlas-jade); outline-offset: 3px; }
.documents-screen :is(.document-upload-card > small,.document-upload-card > label:not(.document-file-button),.document-copy small,.document-copy span) { font-size: .8rem; }
.documents-screen .document-actions button { border-radius: .45rem; }
.documents-screen .document-production-warning { background: var(--atlas-ink); color: var(--atlas-sheet); }
.documents-screen .document-production-warning h2 { color: var(--atlas-sheet); }
.screen .owner-entry { border-radius: .8rem; }
.admin-screen .admin-dashboard { margin-block: 1.25rem; background: var(--atlas-wash); overflow: hidden; }
.admin-screen .admin-dashboard div { border-color: var(--atlas-rule); min-height: 5rem; }
.admin-screen .admin-dashboard strong { font: normal 2rem/1 var(--atlas-type); font-variant-numeric: tabular-nums; }
.admin-screen :is(.admin-dashboard span,.admin-section-head > span,.admin-update-card-head,.admin-submit-row button) { font-size: .75rem; }
.admin-screen .admin-editor { background: var(--atlas-ink); color: var(--atlas-sheet); }
.admin-screen .admin-library .admin-section-head > span { color: var(--atlas-jade); }
.admin-screen .admin-update-card { overflow: hidden; background: var(--atlas-sheet); }
.admin-screen .admin-status-draft { opacity: 1; color: #665335; }
.admin-screen .admin-card-actions button, .admin-screen .admin-submit-row button { min-height: 44px; }
.admin-screen .admin-submit-row button { border-radius: .5rem; }
@media (max-width: 340px) {
  .weather-panel .weather-stats { grid-template-columns: 1fr; }
  .weather-panel .weather-stats div { border: 0; }
  .details-dialog :is(.exchange-rate-grid,.tide-current-card) { grid-template-columns: minmax(0,1fr); }
  .details-dialog :is(.exchange-rate-grid,.tide-current-card) > div { min-height: 5rem; border: 0; }
  .admin-screen .admin-submit-row { grid-template-columns: 1fr; }
}
