*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Tahoma", sans-serif;
  font-size: 13px;
  line-height: 1.5;
  background-color: #0A6E6E;
  color: #111111;
  padding: 16px;
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Arial", sans-serif;
  font-weight: bold;
  color: #111111;
}

a {
  color: #000080;
  text-decoration: underline;
}

a:focus {
  outline: 2px dotted #111111;
}

.desktop-shell {
  max-width: 960px;
  margin: 0 auto;
}

.window-frame {
  background-color: #EFE9DC;
  border-top: 3px solid #EFE9DC;
  border-left: 3px solid #EFE9DC;
  border-right: 3px solid #111111;
  border-bottom: 3px solid #111111;
  box-shadow: 2px 2px 0 #A8A8A8;
}

.window-title-strip {
  background-color: #000080;
  color: #EFE9DC;
  padding: 4px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.title-bar-caption {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "Arial", sans-serif;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.app-icon {
  font-size: 10px;
}

.window-controls {
  display: flex;
  gap: 3px;
}

.win-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background-color: #EFE9DC;
  color: #111111;
  border-top: 2px solid #EFE9DC;
  border-left: 2px solid #EFE9DC;
  border-right: 2px solid #111111;
  border-bottom: 2px solid #111111;
  font-size: 11px;
  font-weight: bold;
  line-height: 1;
  cursor: default;
}

.menu-toolbar {
  background-color: #EFE9DC;
  border-bottom: 2px solid #A8A8A8;
  padding: 3px 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.menu-item {
  color: #111111;
  text-decoration: none;
  padding: 2px 6px;
  border: 1px solid transparent;
}

.menu-item:hover {
  background-color: #A8A8A8;
  border-top: 1px solid #EFE9DC;
  border-left: 1px solid #EFE9DC;
  border-right: 1px solid #111111;
  border-bottom: 1px solid #111111;
}

.window-interior {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dialog-panel {
  background-color: #EFE9DC;
  padding: 12px;
}

.inset-panel {
  border-top: 2px solid #111111;
  border-left: 2px solid #111111;
  border-right: 2px solid #EFE9DC;
  border-bottom: 2px solid #EFE9DC;
  background-color: #EFE9DC;
}

.outset-box {
  border-top: 2px solid #EFE9DC;
  border-left: 2px solid #EFE9DC;
  border-right: 2px solid #111111;
  border-bottom: 2px solid #111111;
  background-color: #EFE9DC;
  padding: 12px;
}

.panel-label {
  font-family: "Arial", sans-serif;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #0A6E6E;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fieldset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.os-fieldset {
  border: 2px solid #A8A8A8;
  padding: 10px;
  background-color: #EFE9DC;
}

.os-legend {
  font-family: "Arial", sans-serif;
  font-weight: bold;
  font-size: 12px;
  padding: 0 4px;
  color: #000080;
}

.service-desc {
  margin-bottom: 8px;
}

.service-param {
  margin-bottom: 8px;
  font-size: 12px;
  color: #111111;
}

.price-indicator {
  font-family: "Arial", sans-serif;
  font-weight: bold;
  padding: 4px 6px;
  background-color: #A8A8A8;
  border-top: 1px solid #111111;
  border-left: 1px solid #111111;
  border-right: 1px solid #EFE9DC;
  border-bottom: 1px solid #EFE9DC;
  color: #111111;
  display: inline-block;
}

.refusal-text {
  font-weight: bold;
  margin-bottom: 6px;
}

.refusal-subtext {
  font-size: 12px;
}

.os-title {
  font-size: 16px;
  margin-bottom: 10px;
  color: #000080;
}

.gazetteer-entry {
  margin-bottom: 8px;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.os-button {
  font-family: "Arial", sans-serif;
  font-size: 12px;
  font-weight: bold;
  padding: 6px 14px;
  text-decoration: none;
  text-align: center;
  display: inline-block;
  cursor: pointer;
  border-top: 3px solid #EFE9DC;
  border-left: 3px solid #EFE9DC;
  border-right: 3px solid #111111;
  border-bottom: 3px solid #111111;
}

.os-button:active {
  border-top: 3px solid #111111;
  border-left: 3px solid #111111;
  border-right: 3px solid #EFE9DC;
  border-bottom: 3px solid #EFE9DC;
}

.primary-btn {
  background-color: #000080;
  color: #EFE9DC;
}

.primary-btn:hover {
  background-color: #0A6E6E;
  color: #EFE9DC;
}

.secondary-btn {
  background-color: #A8A8A8;
  color: #111111;
}

.secondary-btn:hover {
  background-color: #EFE9DC;
}

.sub-title-strip {
  background-color: #0A6E6E;
  color: #EFE9DC;
  padding: 4px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Arial", sans-serif;
  font-size: 11px;
  font-weight: bold;
}

.status-tag {
  background-color: #EFE9DC;
  color: #111111;
  padding: 1px 4px;
  font-size: 10px;
}

.sub-content {
  padding: 10px;
  margin-top: 2px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.contact-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cell-label {
  font-size: 11px;
  font-weight: bold;
  color: #0A6E6E;
  text-transform: uppercase;
}

.cell-value,
.cell-link {
  font-size: 13px;
  font-weight: bold;
}

.privacy-note {
  background-color: #A8A8A8;
  border: 1px solid #111111;
  padding: 8px 10px;
  font-size: 11px;
}

.privacy-text {
  line-height: 1.4;
}

.status-strip {
  background-color: #A8A8A8;
  border-top: 2px solid #EFE9DC;
  padding: 3px 6px;
  display: flex;
  gap: 6px;
  font-size: 11px;
}

.status-pane {
  padding: 2px 6px;
  border-top: 1px solid #111111;
  border-left: 1px solid #111111;
  border-right: 1px solid #EFE9DC;
  border-bottom: 1px solid #EFE9DC;
  background-color: #EFE9DC;
  white-space: nowrap;
}

.status-pane:last-child {
  flex-grow: 1;
}

@media (max-width: 600px) {
  body {
    padding: 6px;
  }

  .window-title-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .window-controls {
    align-self: flex-end;
  }

  .status-strip {
    flex-direction: column;
  }

  .dialog-actions {
    flex-direction: column;
  }

  .os-button {
    width: 100%;
  }
}