/* Bear Exchange: a recovered late-1970s public-information telephone unit. */

html.exchange-page {
  min-width: 0;
  background:
    linear-gradient(rgba(73, 67, 47, 0.08) 1px, transparent 1px),
    #d8d1b7;
  background-size: 100% 5px;
}

body.bear-exchange-page {
  --service-yellow: #f2ce1b;
  --service-orange: #d66d25;
  --service-blue: #315c69;
  --service-green: #53674a;
  --service-cream: #e8e0c7;
  --case-dark: #292b25;
  --case-mid: #626255;
  --ink: #11120f;
  box-sizing: border-box;
  width: min(1120px, calc(100vw - 24px));
  margin: 12px auto 32px;
  background: #eee9d9;
  border: 2px solid #151510;
  box-shadow: 8px 9px 0 rgba(33, 31, 23, 0.25);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.35;
}

html.exchange-page body.bear-exchange-page::before {
  content: "FOLKESTONE LOCAL ARCHIVES / TELEPHONE SERVICE";
  padding: 8px 12px;
  background: #111;
  color: var(--service-yellow);
  border: 0;
  border-bottom: 5px solid var(--service-yellow);
  font-family: "Arial Narrow", Arial, Helvetica, sans-serif;
  font-size: clamp(20px, 4vw, 38px);
  font-weight: 900;
  letter-spacing: -0.025em;
  text-align: left;
  text-transform: uppercase;
}

.bear-exchange-page *,
.bear-exchange-page *::before,
.bear-exchange-page *::after {
  box-sizing: border-box;
}

.bear-exchange-page button,
.bear-exchange-page input,
.bear-exchange-page select,
.bear-exchange-page textarea {
  font: inherit;
}

.bear-exchange-page button {
  color: var(--ink);
}

.bear-exchange-page button:focus-visible,
.bear-exchange-page a:focus-visible,
.bear-exchange-page input:focus-visible,
.bear-exchange-page select:focus-visible,
.bear-exchange-page textarea:focus-visible,
.bear-exchange-page [tabindex]:focus-visible {
  outline: 4px solid #176d91;
  outline-offset: 3px;
}

.bear-exchange-page .exchange-back,
.bear-exchange-page > p:first-child {
  margin: 0;
  padding: 7px 12px;
  background: #eee9d9;
  border-bottom: 1px solid #111;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
}

.exchange-masthead {
  position: relative;
  overflow: hidden;
  background: var(--service-cream);
  border-bottom: 1px solid #111;
}

.exchange-masthead::after {
  position: absolute;
  right: -38px;
  bottom: -48px;
  width: 180px;
  height: 180px;
  border: 20px solid rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  content: "";
}

.exchange-masthead .exchange-kicker,
.exchange-masthead .exchange-issue,
.exchange-masthead .exchange-subtitle {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: "Arial Narrow", Arial, Helvetica, sans-serif;
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
}

.exchange-masthead .exchange-kicker {
  padding: 8px 14px 4px;
  color: #35382f;
  font-size: 13px;
  letter-spacing: 0.16em;
}

.bear-exchange-page .exchange-masthead h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 4px 14px 7px;
  background: transparent;
  border: 0;
  color: #171914;
  font-family: "Arial Black", "Arial Narrow", Arial, Helvetica, sans-serif;
  font-size: clamp(34px, 6.7vw, 72px);
  line-height: 0.92;
  letter-spacing: -0.055em;
  text-align: left;
  text-transform: uppercase;
}

.exchange-masthead .exchange-subtitle {
  padding: 7px 14px;
  background: var(--service-orange);
  border-top: 1px solid #111;
  border-bottom: 1px solid #111;
  font-size: clamp(16px, 2vw, 24px);
  letter-spacing: 0.08em;
}

.exchange-masthead .exchange-issue {
  padding: 5px 14px;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.service-warning {
  padding: 10px 14px;
  background: #111;
  color: #fff;
  border-bottom: 5px solid var(--service-yellow);
  font-size: 14px;
  letter-spacing: 0.02em;
}

.service-warning strong {
  color: var(--service-yellow);
  text-transform: uppercase;
}

.exchange-desk {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 18px;
  background:
    radial-gradient(circle at 15% 12%, rgba(0, 0, 0, 0.05) 0 1px, transparent 1px),
    #c4bea8;
  background-size: 8px 8px;
}

.information-column {
  display: grid;
  gap: 13px;
}

.service-card,
.survival-panel {
  margin: 0;
  border: 2px solid #111;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.28);
}

.service-card {
  padding: 10px;
  background: #e7dec2;
}

.service-card .card-number {
  margin: -10px -10px 8px;
  padding: 4px 8px;
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-align: left;
}

.bear-exchange-page .service-card h2,
.bear-exchange-page .survival-panel h2 {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  color: #111;
  font-family: "Arial Black", "Arial Narrow", Arial, sans-serif;
  font-size: 24px;
  line-height: 0.95;
  text-align: left;
  text-decoration: none;
  text-transform: uppercase;
}

.service-card p {
  margin: 8px 0;
  font-size: 14px;
  text-align: left;
}

.service-card .service-key {
  margin: 9px -10px -10px;
  padding: 6px 10px;
  border-top: 2px solid #111;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.service-card .service-key strong {
  display: inline-grid;
  width: 28px;
  height: 28px;
  margin-left: 4px;
  place-items: center;
  background: #111;
  color: #fff;
  border-radius: 50%;
  font-size: 18px;
}

.exchange-card {
  border-top: 12px solid var(--service-orange);
}

.watch-card {
  background: var(--service-yellow);
  border-width: 3px;
}

.watch-card img {
  display: block;
  width: 148px;
  height: 148px;
  margin: 0 auto 9px;
  border: 3px solid #111;
  border-radius: 50%;
  filter: saturate(0.92) contrast(1.08);
  object-fit: cover;
}

body[data-line="watch"] .watch-card img {
  content: url("shepway-bear-watch-worn.jpg");
}

body[data-line="watch"] .watch-card {
  box-shadow: 0 0 0 5px #111, 7px 7px 0 rgba(0, 0, 0, 0.3);
}

.survival-panel {
  background: #e9e3cd;
}

.survival-panel h2 {
  padding: 8px 10px !important;
  background: #111 !important;
  color: var(--service-yellow) !important;
  font-size: 19px !important;
  letter-spacing: 0.03em;
}

.survival-panel ol {
  margin: 0;
  padding: 0;
  counter-reset: procedure;
  list-style: none;
}

.survival-panel li {
  position: relative;
  min-height: 45px;
  padding: 8px 8px 8px 46px;
  border-top: 1px solid #111;
  font-size: 13px;
}

.survival-panel li::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  display: grid;
  width: 36px;
  place-items: center;
  background: var(--service-yellow);
  border-right: 1px solid #111;
  content: counter(list-item);
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 21px;
}

.telephone-shell {
  position: relative;
  min-width: 0;
  padding: 78px 22px 18px;
  overflow: hidden;
  border: 3px solid #171914;
  border-radius: 20px 20px 12px 12px;
  background:
    linear-gradient(105deg, transparent 0 42%, rgba(255,255,255,0.08) 44%, transparent 46%),
    linear-gradient(#6c6c5d, #4d5146 56%, #3c4038);
  box-shadow:
    inset 3px 3px 0 rgba(255, 255, 255, 0.24),
    inset -4px -5px 0 rgba(0, 0, 0, 0.3),
    7px 8px 0 rgba(0, 0, 0, 0.28);
}

body[data-line="watch"] .telephone-shell {
  box-shadow:
    inset 0 8px 0 var(--service-yellow),
    inset 3px 3px 0 rgba(255, 255, 255, 0.24),
    inset -4px -5px 0 rgba(0, 0, 0, 0.3),
    7px 8px 0 rgba(0, 0, 0, 0.28);
}

body[data-line="bear"] .telephone-shell {
  box-shadow:
    inset 0 8px 0 var(--service-orange),
    inset 3px 3px 0 rgba(255, 255, 255, 0.24),
    inset -4px -5px 0 rgba(0, 0, 0, 0.3),
    7px 8px 0 rgba(0, 0, 0, 0.28);
}

.case-screw {
  position: absolute;
  top: 15px;
  width: 16px;
  height: 16px;
  border: 2px solid #222;
  border-radius: 50%;
  background: linear-gradient(45deg, #777 42%, #222 44% 56%, #aaa 58%);
  box-shadow: inset 1px 1px 1px #ddd;
}

.screw-one { left: 16px; }
.screw-two { right: 16px; }

.handset {
  position: absolute;
  top: 17px;
  left: 50%;
  display: flex;
  width: min(520px, calc(100% - 90px));
  height: 63px;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
  filter: drop-shadow(0 7px 2px rgba(0, 0, 0, 0.35));
}

.handset-grip {
  width: calc(100% - 104px);
  height: 38px;
  background: linear-gradient(#292b26, #11130f);
  border: 3px solid #0b0c0a;
  border-radius: 15px;
  box-shadow: inset 0 4px 1px rgba(255, 255, 255, 0.09);
}

.handset-cup {
  position: relative;
  z-index: 1;
  width: 74px;
  height: 57px;
  background: linear-gradient(#30322c, #10120e);
  border: 3px solid #0b0c0a;
  border-radius: 24px 18px 18px 24px;
  box-shadow: inset 0 4px 1px rgba(255, 255, 255, 0.08);
}

.handset-cup-right {
  border-radius: 18px 24px 24px 18px;
}

.telephone-label {
  display: flex;
  margin: 0 0 12px;
  padding: 7px 10px;
  align-items: baseline;
  justify-content: space-between;
  border: 2px solid #1b1c17;
  background: #ded6bd;
  box-shadow: inset 0 0 0 2px rgba(91, 79, 51, 0.28);
  color: #1c1d18;
  font-family: "Arial Narrow", Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.telephone-label small {
  font-size: 10px;
}

body[data-line="watch"] .telephone-label {
  background: var(--service-yellow);
}

body[data-line="bear"] .telephone-label {
  background: #d9aa82;
}

.instrument-grid {
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr);
  gap: 12px;
}

.speaker-panel,
.display-panel,
.message-panel,
.directory-panel,
.keypad-panel,
.archive-entry-panel,
.local-form-panel,
.call-control-panel {
  border: 2px solid #151611;
  background: #dcd4bb;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.4), 2px 2px 0 rgba(0,0,0,0.22);
}

.speaker-panel {
  padding: 10px;
  background: #343831;
  color: #e0d9c2;
  text-align: center;
}

.speaker-panel p {
  margin: 5px 0 0;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.25em;
  text-align: center;
}

.speaker-grille {
  height: 88px;
  border: 1px solid #111;
  background:
    radial-gradient(circle, #090a08 0 2px, transparent 2.5px) 0 0 / 13px 13px,
    #51554b;
  box-shadow: inset 0 0 10px #111;
}

.display-panel {
  padding: 9px;
  background: #252820;
}

.display-label {
  margin: 0 0 4px;
  color: #d7d2be;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-align: left;
}

.status-display,
.entry-display {
  display: flex;
  min-height: 48px;
  padding: 8px 11px;
  align-items: center;
  border: 2px solid #0c1009;
  background: #9bab78;
  box-shadow: inset 0 0 12px rgba(26, 38, 20, 0.55);
  color: #10190d;
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(16px, 2.5vw, 23px);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-shadow: 0 1px rgba(255,255,255,0.2);
}

.status-lamp {
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  margin-right: 9px;
  border: 1px solid #15220e;
  border-radius: 50%;
  background: #304b20;
}

body[data-call-state="connected"] .status-lamp,
body[data-call-state="playing-message"] .status-lamp,
body[data-call-state="enter-archive-code"] .status-lamp,
body[data-call-state="code-accepted"] .status-lamp {
  background: #ddeb58;
  box-shadow: 0 0 7px #ddeb58;
}

body[data-call-state="calling"] .status-lamp,
body[data-call-state="connecting"] .status-lamp {
  animation: lamp-pulse 0.55s steps(2, end) infinite;
  background: #ef8b25;
}

.display-meta {
  display: flex;
  padding: 5px 2px 0;
  justify-content: space-between;
  color: #d7d2be;
  font-family: "Courier New", monospace;
  font-size: 10px;
}

.entry-display {
  min-height: 41px;
  margin-top: 7px;
  justify-content: space-between;
  font-size: 14px;
}

.entry-display output {
  min-width: 120px;
  text-align: right;
}

.message-panel {
  margin-top: 12px;
  background: #efead9;
}

.message-heading,
.archive-entry-heading {
  display: flex;
  padding: 5px 8px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #171914;
  color: #fff;
}

.bear-exchange-page .message-heading h2,
.bear-exchange-page .archive-entry-heading h2,
.bear-exchange-page .directory-panel h2,
.bear-exchange-page .local-form-panel h2,
.bear-exchange-page .archive-note h2 {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  color: inherit;
  font-family: "Arial Black", "Arial Narrow", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.1;
  text-align: left;
  text-decoration: none;
  text-transform: uppercase;
}

.message-heading span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: right;
}

body[data-line="watch"] .message-heading,
body[data-line="watch"] .archive-entry-heading {
  color: var(--service-yellow);
}

.transcript {
  min-height: 116px;
  max-height: 250px;
  padding: 10px 12px;
  overflow-y: auto;
  border-top: 1px solid #111;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
}

.transcript p {
  margin: 0 0 0.72em;
  text-align: left;
}

.transcript p:last-child { margin-bottom: 0; }

.telephone-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 12px;
  margin-top: 12px;
}

.directory-panel {
  min-width: 0;
  background: #eee8d3;
}

.directory-panel > h2 {
  padding: 7px 9px !important;
  background: #bcb49a !important;
  border-bottom: 2px solid #151611 !important;
}

.menu-options {
  display: grid;
  gap: 0;
}

.directory-option {
  display: grid;
  width: 100%;
  min-height: 42px;
  padding: 0;
  grid-template-columns: 42px 1fr;
  align-items: stretch;
  border: 0;
  border-bottom: 1px solid #444;
  background: #ede7d2;
  cursor: pointer;
  text-align: left;
}

.directory-option:last-child { border-bottom: 0; }
.directory-option:hover:not(:disabled) { background: #fff7bd; }

.directory-option:disabled,
.keypad button:disabled,
.archive-key:disabled {
  cursor: not-allowed;
  filter: grayscale(1);
  opacity: 0.48;
}

.directory-key {
  display: grid;
  place-items: center;
  background: #171914;
  color: #fff;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 19px;
}

.directory-label {
  padding: 7px 9px;
  align-self: center;
  font-size: 13px;
  font-weight: 700;
}

.standby-copy {
  margin: 0;
  padding: 15px;
  font-size: 13px;
  text-align: left;
}

.keypad-panel {
  padding: 11px;
  background: #30332d;
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.keypad button {
  min-height: 61px;
  padding: 3px;
  border: 2px solid #0c0d0a;
  border-radius: 7px;
  background: linear-gradient(#f2ecda, #afa994);
  box-shadow: inset 1px 1px 0 #fff, 2px 3px 0 #141510;
  cursor: pointer;
  font-family: "Arial Narrow", Arial, sans-serif;
}

.keypad button:active:not(:disabled) {
  transform: translate(2px, 2px);
  box-shadow: inset 1px 1px 3px #555;
}

.keypad button span {
  display: block;
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
}

.keypad button small {
  display: block;
  margin-top: 3px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.archive-entry-panel,
.local-form-panel {
  margin-top: 12px;
  background: #eee8d3;
}

.archive-entry-heading p {
  margin: 0;
  color: #ddd7c3;
  font-size: 10px;
  text-align: right;
}

.archive-keyboard {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 5px;
  padding: 10px;
}

.archive-key,
.archive-entry-actions button,
.audio-controls button,
.save-local-draft {
  min-height: 36px;
  border: 2px solid #161712;
  background: #d9d1b9;
  box-shadow: 1px 2px 0 #333;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.archive-key:hover:not(:disabled),
.archive-entry-actions button:hover:not(:disabled),
.audio-controls button:hover:not(:disabled) {
  background: var(--service-yellow);
}

.archive-entry-actions {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 7px;
  padding: 0 10px 10px;
}

.archive-entry-actions #archive-confirm {
  background: var(--service-yellow);
}

.local-form-panel {
  padding: 0;
}

.local-draft-form > h2 {
  padding: 8px 10px !important;
  background: #171914 !important;
  color: var(--service-yellow) !important;
}

.local-only-notice {
  margin: 0;
  padding: 9px 10px;
  background: var(--service-yellow);
  border-bottom: 1px solid #111;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.form-field {
  display: grid;
  grid-template-columns: minmax(150px, 0.35fr) 1fr;
  align-items: center;
  border-bottom: 1px solid #777;
}

.form-field > span {
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 800;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: calc(100% - 12px);
  margin: 6px;
  padding: 7px;
  border: 2px solid #333;
  background: #fffef5;
}

.save-local-draft {
  margin: 9px 10px;
  padding: 7px 12px;
  background: var(--service-yellow);
}

.draft-result {
  display: inline;
  margin: 9px 10px;
  font-size: 13px;
  font-weight: 700;
}

.code-result {
  padding: 10px 12px;
  border-top: 2px solid #111;
}

.code-result p,
.code-result h3 {
  margin: 5px 0;
  text-align: left;
}

.code-result .result-stamp {
  display: inline-block;
  padding: 3px 6px;
  border: 3px solid currentColor;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  transform: rotate(-1deg);
}

.code-accepted { background: #c7d7a8; }
.code-rejected { background: #e0b1a0; }
.code-accepted .result-stamp { color: #345124; }
.code-rejected .result-stamp { color: #7c201b; }
.code-result .clue { font-family: Georgia, serif; font-style: italic; }
.code-result .reward { font-size: 12px; font-weight: 800; text-transform: uppercase; }
.unlock-link { display: inline-block; margin-top: 6px; font-weight: 900; }

.call-control-panel {
  display: grid;
  grid-template-columns: 120px 120px 1fr;
  gap: 10px;
  align-items: stretch;
  margin-top: 12px;
  padding: 10px;
  background: #292c26;
}

.call-button,
.end-button {
  min-height: 56px;
  border: 3px solid #0e100c;
  border-radius: 6px;
  box-shadow: inset 1px 2px 0 rgba(255,255,255,0.38), 2px 3px 0 #10110d;
  cursor: pointer;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 18px;
}

.call-button { background: #8da552; }
.end-button { background: #c14a38; color: #fff !important; }
.call-button:disabled,
.end-button:disabled { cursor: not-allowed; filter: grayscale(0.7); opacity: 0.55; }

.audio-controls {
  display: grid;
  grid-template-columns: auto auto auto minmax(90px, 1fr);
  gap: 7px;
  align-items: center;
  color: #eee8d3;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.audio-controls button {
  min-height: 42px;
  padding: 4px 8px;
}

.audio-controls input { min-width: 0; accent-color: var(--service-yellow); }

.keyboard-note {
  margin: 10px 0 0;
  padding: 5px 7px;
  border: 1px solid #151611;
  background: #c9c1a8;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-align: center;
}

.archive-note {
  display: grid;
  grid-template-columns: 260px 1fr;
  border-top: 5px solid #111;
  background: #e8e0c8;
}

.archive-note h2 {
  padding: 15px !important;
  background: var(--service-yellow) !important;
  color: #111 !important;
  border-right: 2px solid #111 !important;
  font-size: 22px !important;
}

.archive-note p {
  margin: 0;
  padding: 15px;
  text-align: left;
}

.bear-exchange-page .footer {
  margin: 0;
  background: #111;
  border: 0;
  color: #fff;
}

.bear-exchange-page .footer a { color: var(--service-yellow); }

[hidden] { display: none !important; }

@keyframes lamp-pulse {
  50% { opacity: 0.25; }
}

@media (max-width: 860px) {
  .exchange-desk {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .telephone-shell { padding-right: 14px; padding-left: 14px; }
  .telephone-controls { grid-template-columns: 1fr 245px; }
  .archive-keyboard { grid-template-columns: repeat(6, 1fr); }
  .call-control-panel { grid-template-columns: 105px 105px 1fr; }
  .audio-controls { grid-template-columns: 1fr 1fr; }
  .audio-controls label { text-align: right; }
}

@media (max-width: 700px) {
  html.exchange-page { min-width: 0; }

  body.bear-exchange-page {
    width: calc(100vw - 12px);
    margin: 6px auto 18px;
    box-shadow: 3px 4px 0 rgba(33, 31, 23, 0.25);
  }

  .exchange-desk { grid-template-columns: 1fr; }
  .information-column { grid-template-columns: 1fr 1fr; }
  .survival-panel { grid-column: 1 / -1; }
  .watch-card img { width: 110px; height: 110px; }
  .telephone-controls { grid-template-columns: 1fr; }
  .keypad-panel { order: -1; }
  .keypad button { min-height: 66px; }
  .call-control-panel { grid-template-columns: 1fr 1fr; }
  .audio-controls { grid-column: 1 / -1; }
  .archive-note { grid-template-columns: 1fr; }
  .archive-note h2 { border-right: 0 !important; border-bottom: 2px solid #111 !important; }
}

@media (max-width: 470px) {
  .information-column { grid-template-columns: 1fr; }
  .survival-panel { grid-column: auto; }
  .telephone-shell { padding: 72px 9px 11px; border-radius: 14px 14px 8px 8px; }
  .handset { width: calc(100% - 55px); }
  .instrument-grid { grid-template-columns: 88px minmax(0, 1fr); gap: 7px; }
  .speaker-panel { padding: 7px; }
  .speaker-grille { height: 92px; background-size: 11px 11px; }
  .telephone-label { display: block; }
  .telephone-label small { display: block; margin-top: 3px; }
  .status-display { min-height: 61px; font-size: 15px; }
  .display-meta { display: block; }
  .display-meta span { display: block; }
  .archive-keyboard { grid-template-columns: repeat(6, 1fr); gap: 4px; padding: 7px; }
  .archive-entry-actions { grid-template-columns: 1fr; padding: 0 7px 7px; }
  .message-heading { display: block; }
  .message-heading span { display: block; margin-top: 4px; text-align: left; }
  .form-field { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/*
 * Hotline handset skin, revision 1.1.
 * Late-1990s mobile hardware carrying an older public-information service.
 * The controls and document structure above remain intentionally reusable.
 */

html.exchange-page {
  background:
    linear-gradient(rgba(27, 25, 18, 0.84), rgba(27, 25, 18, 0.84)),
    repeating-linear-gradient(93deg, #6a563e 0 3px, #4f3f2d 3px 8px, #756047 8px 12px);
}

body.bear-exchange-page {
  --lcd: #afbd8b;
  --lcd-dark: #162017;
  --phone-plastic: #252722;
  --phone-edge: #0b0c0a;
  width: min(1160px, calc(100vw - 24px));
  background: #e8dfc3;
  border-width: 1px;
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.55);
}

html.exchange-page body.bear-exchange-page::before {
  padding-block: 6px;
  border-bottom-width: 3px;
  font-size: clamp(17px, 2.7vw, 30px);
  letter-spacing: 0.02em;
}

.exchange-masthead .exchange-kicker {
  background: #e5d9b8;
}

.bear-exchange-page .exchange-masthead h1 {
  max-width: 940px;
  padding-block: 12px 15px;
  font-size: clamp(38px, 7.6vw, 82px);
}

.exchange-masthead .exchange-subtitle {
  background: var(--service-yellow);
}

.service-warning {
  border-bottom-width: 2px;
}

.exchange-desk {
  grid-template-columns: 286px minmax(390px, 510px);
  gap: clamp(20px, 4vw, 46px);
  justify-content: center;
  padding: 30px 22px 42px;
  background:
    radial-gradient(circle at 25% 15%, rgba(255,255,255,0.13) 0 1px, transparent 1.5px) 0 0 / 10px 10px,
    linear-gradient(108deg, rgba(99, 82, 57, 0.26), transparent 42%),
    #b5a98d;
}

.information-column {
  align-self: start;
  gap: 16px;
}

.service-card,
.survival-panel {
  box-shadow: 5px 6px 0 rgba(0, 0, 0, 0.24);
}

.recorded-card {
  border-top: 12px solid #1d211b;
  background: #b9c498;
}

.recorded-card .service-key {
  background: #dfe5c9;
}

.telephone-shell {
  width: 100%;
  max-width: 510px;
  margin-inline: auto;
  padding: 66px 27px 32px;
  overflow: visible;
  border: 5px solid var(--phone-edge);
  border-radius: 58px 58px 78px 78px;
  background:
    radial-gradient(circle at 13% 27%, rgba(255,255,255,0.08) 0 1px, transparent 1.5px) 0 0 / 17px 21px,
    linear-gradient(103deg, transparent 0 47%, rgba(255,255,255,0.055) 49%, transparent 51%),
    linear-gradient(#343630, #20231f 54%, #171916);
  box-shadow:
    inset 5px 4px 1px rgba(255,255,255,0.1),
    inset -7px -9px 1px rgba(0,0,0,0.43),
    0 18px 0 #11120f,
    0 28px 38px rgba(0,0,0,0.45);
}

.telephone-shell::before {
  position: absolute;
  inset: 12px 12px 16px;
  z-index: 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 46px 46px 68px 68px;
  content: "";
  pointer-events: none;
}

.telephone-shell > * {
  position: relative;
  z-index: 1;
}

.case-screw {
  top: 28px;
  width: 10px;
  height: 10px;
  border-width: 1px;
  opacity: 0.48;
}

.screw-one { left: 25px; }
.screw-two { right: 25px; }

.handset {
  top: 22px;
  width: 104px;
  height: 18px;
  filter: none;
}

.handset-cup {
  display: none;
}

.handset-grip {
  width: 104px;
  height: 9px;
  border: 1px solid #090a08;
  border-radius: 10px;
  background: repeating-linear-gradient(90deg, #0b0c0a 0 7px, #3d4038 7px 10px);
  box-shadow: inset 0 2px 2px #050604;
}

.telephone-label {
  margin: 0 auto 7px;
  padding: 5px 10px;
  border-width: 1px;
  background: #cfc3a5;
  box-shadow: none;
  transform: rotate(-0.35deg);
}

.telephone-label span {
  font-size: 18px;
  letter-spacing: 0.04em;
}

.hotline-number {
  margin: 0 0 11px;
  color: #d5ceb9;
  font-family: "Courier New", monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
}

body[data-line="watch"] .telephone-label {
  background: var(--service-yellow);
}

body[data-line="bear"] .telephone-label {
  background: #d79a6d;
}

.instrument-grid {
  grid-template-columns: 1fr;
  gap: 8px;
}

.speaker-panel {
  display: none;
}

.display-panel,
.message-panel {
  border: 3px solid #070907;
  background: var(--lcd);
  box-shadow:
    inset 0 0 16px rgba(16, 27, 14, 0.55),
    0 0 0 5px #3c3f36,
    0 0 0 7px #10120f;
  color: var(--lcd-dark);
}

.display-panel {
  margin: 7px 8px 0;
  padding: 10px 12px 8px;
  border-radius: 10px 10px 3px 3px;
}

.display-label,
.display-meta {
  color: #293526;
}

.status-display,
.entry-display {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--lcd-dark);
  font-size: clamp(16px, 2.4vw, 22px);
}

.message-panel {
  margin: 8px 8px 20px;
  border-radius: 3px 3px 10px 10px;
  box-shadow:
    inset 0 -7px 14px rgba(16, 27, 14, 0.18),
    0 0 0 5px #3c3f36,
    0 5px 0 7px #10120f;
}

.message-heading {
  background: transparent;
  color: var(--lcd-dark);
  border-bottom: 1px solid rgba(20, 33, 18, 0.48);
}

body[data-line="watch"] .message-heading,
body[data-line="watch"] .archive-entry-heading {
  color: var(--lcd-dark);
}

.transcript {
  min-height: 104px;
  max-height: 185px;
  border-top: 0;
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.28;
}

.call-control-panel {
  grid-template-columns: 1fr 1fr;
  margin: 0 14px 13px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.call-button,
.end-button {
  min-height: 55px;
  border-radius: 26px 26px 12px 12px;
  font-size: 15px;
  letter-spacing: 0.05em;
}

.call-button {
  background: linear-gradient(#6fa662, #3d6f3d);
  color: #fff !important;
}

.end-button {
  background: linear-gradient(#d06a4d, #983723);
}

.audio-controls {
  grid-column: 1 / -1;
  grid-template-columns: auto auto auto minmax(90px, 1fr);
  padding: 5px 2px 0;
}

.audio-controls button {
  min-height: 32px;
  border-color: #0d0e0c;
  background: #a9a48f;
  box-shadow: 1px 2px 0 #0c0d0a;
  color: #111 !important;
  font-size: 10px;
}

.telephone-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 0;
}

.keypad-panel {
  order: -1;
  margin-inline: 23px;
  padding: 13px 14px 16px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.keypad {
  gap: 10px 13px;
}

.keypad button {
  min-height: 55px;
  border-width: 2px;
  border-radius: 20px 20px 13px 13px;
  background: linear-gradient(#c6c0ad, #817f73);
  box-shadow:
    inset 0 2px 1px rgba(255,255,255,0.55),
    inset 0 -3px 1px rgba(0,0,0,0.18),
    0 4px 0 #090a08;
}

.keypad button span {
  font-family: Arial, sans-serif;
  font-size: 23px;
}

.directory-panel {
  margin: 0 9px;
  max-height: 270px;
  overflow: auto;
  border: 1px solid #0f100d;
  background: #d7cfb6;
  box-shadow: inset 0 0 0 1px #f3eddc;
}

.directory-panel > h2 {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--service-yellow) !important;
}

.directory-option {
  grid-template-columns: 38px 1fr;
  min-height: 38px;
  background: #e4dcc5;
}

.directory-key {
  background: #22241f;
}

.archive-entry-panel,
.local-form-panel {
  margin: 14px 9px 0;
}

.archive-keyboard {
  grid-template-columns: repeat(6, 1fr);
}

.keyboard-note {
  margin: 13px 14px 0;
  border-color: #0c0d0a;
  background: #181a17;
  color: #bfb9a5;
}

.archive-note {
  border-top-width: 2px;
}

@media (max-width: 760px) {
  body.bear-exchange-page {
    width: calc(100% - 12px);
    max-width: 100%;
  }

  .exchange-desk {
    grid-template-columns: minmax(0, 510px);
    padding-inline: 10px;
  }

  .telephone-shell {
    order: -1;
  }

  .information-column {
    grid-template-columns: 1fr 1fr;
  }

  .recorded-card,
  .survival-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 490px) {
  .bear-exchange-page .exchange-masthead h1 {
    font-size: 39px;
  }

  .exchange-desk {
    padding-bottom: 28px;
  }

  .telephone-shell {
    padding: 62px 10px 26px;
    border-width: 4px;
    border-radius: 40px 40px 55px 55px;
  }

  .telephone-label,
  .hotline-number {
    margin-inline: 10px;
  }

  .display-panel,
  .message-panel {
    margin-inline: 8px;
  }

  .keypad-panel {
    margin-inline: 8px;
    padding-inline: 9px;
  }

  .keypad {
    gap: 9px 10px;
  }

  .keypad button {
    min-height: 54px;
  }

  .call-control-panel {
    margin-inline: 9px;
  }

  .audio-controls {
    grid-template-columns: 1fr 1fr;
  }

  .audio-controls label {
    text-align: right;
  }

  .information-column {
    grid-template-columns: 1fr;
  }

  .recorded-card,
  .survival-panel {
    grid-column: auto;
  }
}

/* Raw 1990s web skin. Deliberately flat, square and browser-made. */

html.exchange-page {
  background: #202020;
  background-image: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,0.035) 3px 4px);
}

body.bear-exchange-page {
  --service-yellow: #ffff00;
  --service-orange: #ff6600;
  --service-blue: #000080;
  --service-green: #008000;
  --service-cream: #ffffff;
  --ink: #000000;
  width: min(980px, calc(100% - 16px));
  margin: 8px auto 24px;
  border: 2px solid #ffffff;
  background: #c0c0c0;
  box-shadow: none;
  color: #000000;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}

html.exchange-page body.bear-exchange-page::before {
  padding: 4px 7px;
  border: 0;
  border-bottom: 2px solid #ffff00;
  background: #000000;
  color: #ffff00;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  letter-spacing: 0;
}

.bear-exchange-page button:focus-visible,
.bear-exchange-page a:focus-visible,
.bear-exchange-page input:focus-visible,
.bear-exchange-page select:focus-visible,
.bear-exchange-page textarea:focus-visible,
.bear-exchange-page [tabindex]:focus-visible {
  outline: 2px dotted #ffff00;
  outline-offset: 2px;
}

.bear-exchange-page .exchange-back,
.bear-exchange-page > p:first-child {
  padding: 4px 7px;
  border-bottom: 1px solid #000000;
  background: #ffffff;
  font-family: "Times New Roman", Times, serif;
  font-size: 13px;
  font-weight: 400;
  text-transform: none;
}

.exchange-back a,
.bear-exchange-page .footer a {
  color: #0000ee;
  text-decoration: underline;
}

.exchange-masthead {
  border-bottom: 2px solid #000000;
  background: #000000;
}

.exchange-masthead::after {
  display: none;
}

.exchange-masthead .exchange-kicker {
  padding: 5px 8px;
  background: #c0c0c0;
  color: #000000;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  letter-spacing: 0;
}

.bear-exchange-page .exchange-masthead h1 {
  max-width: none;
  padding: 9px 8px 6px;
  background: #000000;
  color: #ffff00;
  font-family: Arial Black, Arial, Helvetica, sans-serif;
  font-size: clamp(32px, 6vw, 58px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.exchange-masthead .exchange-subtitle {
  padding: 5px 8px;
  border-block: 1px solid #000000;
  background: #ffff00;
  color: #000000;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  letter-spacing: 0;
}

.exchange-masthead .exchange-issue {
  padding: 4px 8px;
  background: #000080;
  color: #ffffff;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  letter-spacing: 0;
}

.service-warning,
.archive-note {
  display: none !important;
}

.exchange-desk {
  grid-template-columns: 238px minmax(0, 560px);
  gap: 12px;
  justify-content: center;
  padding: 12px;
  background: #808080;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.08) 0 1px, transparent 1px 4px);
}

.information-column {
  gap: 8px;
}

.service-card,
.survival-panel {
  border: 2px solid #000000;
  border-radius: 0;
  box-shadow: none;
}

.service-card,
.recorded-card,
.watch-card {
  padding: 7px;
  border-top-width: 2px;
  background: #ffffff;
}

.service-card .card-number {
  margin: -7px -7px 6px;
  padding: 3px 5px;
  background: #000080;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  letter-spacing: 0;
}

.bear-exchange-page .service-card h2,
.bear-exchange-page .survival-panel h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.service-card p {
  margin: 6px 0;
  font-size: 13px;
}

.service-card .service-key {
  margin: 7px -7px -7px;
  padding: 4px 6px;
  border-top: 1px solid #000000;
  background: #c0c0c0;
  font-family: "Courier New", Courier, monospace;
}

.service-card .service-key strong {
  width: 24px;
  height: 24px;
  border-radius: 0;
  background: #000000;
  font-size: 15px;
}

.watch-card img {
  width: 108px;
  height: 108px;
  margin-bottom: 6px;
  border: 1px solid #000000;
  border-radius: 0;
  filter: none;
}

body[data-line="watch"] .watch-card,
body[data-line="watch"] .telephone-shell,
body[data-line="bear"] .telephone-shell {
  box-shadow: none;
}

.survival-panel {
  background: #ffffff;
}

.survival-panel h2 {
  padding: 5px 6px !important;
  background: #000000 !important;
  color: #ffff00 !important;
  font-size: 16px !important;
}

.survival-panel li {
  min-height: 38px;
  padding: 6px 6px 6px 36px;
  font-size: 12px;
}

.survival-panel li::before {
  width: 29px;
  background: #ffff00;
  font-family: Arial, sans-serif;
  font-size: 15px;
}

.telephone-shell {
  width: 100%;
  max-width: 560px;
  margin: 0;
  padding: 8px;
  overflow: hidden;
  border: 3px outset #ffffff;
  border-radius: 0;
  background: #c0c0c0;
  box-shadow: none;
}

.telephone-shell::before,
.case-screw,
.handset {
  display: none;
}

.telephone-label {
  display: flex;
  margin: 0 0 3px;
  padding: 4px 6px;
  border: 1px solid #000000;
  background: #000080 !important;
  box-shadow: none;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  transform: none;
}

.telephone-label span {
  font-size: 15px;
  letter-spacing: 0;
}

.telephone-label small {
  font-family: "Courier New", Courier, monospace;
}

.hotline-number {
  margin: 0 0 5px;
  padding: 2px 4px;
  border: 1px solid #808080;
  background: #ffffff;
  color: #000000;
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  text-align: left;
}

.instrument-grid {
  display: block;
}

.display-panel,
.message-panel {
  margin: 0;
  border: 2px inset #ffffff;
  border-radius: 0;
  background: #000000;
  box-shadow: none;
  color: #00ff00;
}

.display-panel {
  padding: 5px 7px;
}

.display-label,
.display-meta,
.message-heading,
body[data-line="watch"] .message-heading {
  color: #00ff00;
}

.status-display,
.entry-display {
  min-height: 36px;
  padding: 4px;
  background: #000000;
  color: #00ff00;
  font-family: "Courier New", Courier, monospace;
  font-size: 16px;
}

.status-lamp {
  width: 8px;
  height: 8px;
  border-radius: 0;
  background: #008000;
}

.message-panel {
  margin-top: 5px;
}

.message-heading,
.archive-entry-heading,
.voice-message-heading {
  padding: 3px 5px;
  border-bottom: 1px solid #00aa00;
  background: #000000;
}

.bear-exchange-page .message-heading h2,
.bear-exchange-page .archive-entry-heading h2,
.bear-exchange-page .directory-panel h2,
.bear-exchange-page .local-form-panel h2,
.bear-exchange-page .voice-message-heading h2 {
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
}

.transcript {
  min-height: 92px;
  max-height: 160px;
  padding: 7px;
  border: 0;
  color: #00ff00;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.25;
}

.call-control-panel {
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin: 5px 0;
  padding: 5px;
  border: 2px inset #ffffff;
  background: #c0c0c0;
  box-shadow: none;
}

.call-button,
.end-button,
.keypad button,
.archive-key,
.archive-entry-actions button,
.audio-controls button,
.save-local-draft,
.voice-message-controls button,
.voice-message-controls a {
  border: 2px outset #ffffff;
  border-radius: 0;
  background: #c0c0c0;
  box-shadow: none;
  color: #000000 !important;
  font-family: Arial, Helvetica, sans-serif;
  cursor: pointer;
}

.call-button:active:not(:disabled),
.end-button:active:not(:disabled),
.keypad button:active:not(:disabled),
.archive-key:active:not(:disabled),
.voice-message-controls button:active:not(:disabled) {
  transform: none;
  border-style: inset;
  box-shadow: none;
}

.call-button,
.end-button {
  min-height: 38px;
  font-size: 14px;
}

.call-button {
  background: #00aa00;
}

.end-button {
  background: #cc0000;
  color: #ffffff !important;
}

.audio-controls {
  grid-column: 1 / -1;
  padding: 0;
  color: #000000;
}

.audio-controls button {
  min-height: 26px;
}

.telephone-controls {
  gap: 5px;
}

.keypad-panel {
  margin: 0;
  padding: 6px;
  border: 2px inset #ffffff;
  background: #808080;
}

.keypad {
  gap: 5px;
}

.keypad button {
  min-height: 46px;
  background: #c0c0c0;
}

.keypad button span {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px;
}

.directory-panel {
  margin: 0;
  max-height: 250px;
  border: 2px inset #ffffff;
  background: #ffffff;
  box-shadow: none;
}

.directory-panel > h2 {
  padding: 4px 6px !important;
  background: #000080 !important;
  color: #ffffff !important;
}

.directory-option {
  min-height: 34px;
  border-bottom: 1px solid #808080;
  background: #ffffff;
}

.directory-option:hover:not(:disabled) {
  background: #ffff00;
}

.directory-key {
  background: #000000;
  color: #ffff00;
  font-family: "Courier New", Courier, monospace;
  font-size: 16px;
}

.archive-entry-panel,
.local-form-panel,
.recent-voice-panel,
.voice-message-panel {
  margin: 5px 0 0;
  border: 2px inset #ffffff;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.archive-entry-heading,
.recent-voice-heading,
.voice-message-heading {
  background: #000080;
  color: #ffffff;
}

.archive-entry-heading p {
  color: #ffffff;
}

.voice-message-panel > p {
  margin: 0;
  padding: 7px;
  text-align: left;
}

.voice-message-heading {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.recent-voice-heading {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 5px;
  border-bottom: 1px solid #00aa00;
  background: #000080;
  color: #ffffff;
}

.bear-exchange-page .recent-voice-heading h2 {
  margin: 0;
  color: #ffffff;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
}

.recent-voice-heading span {
  font: 700 10px "Courier New", Courier, monospace;
}

.recent-voice-panel > p {
  margin: 0;
  padding: 7px;
  border-bottom: 1px solid #808080;
  text-align: left;
}

.recent-voice-list {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 7px;
  list-style: none;
}

.recent-voice-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 8px;
  padding: 6px;
  border: 1px solid #808080;
  background: #e0e0e0;
}

.recent-voice-item p {
  margin: 0;
  font: 700 10px "Courier New", Courier, monospace;
  text-align: left;
}

.recent-voice-item audio {
  grid-column: 1 / -1;
  width: 100%;
  margin: 2px 0 0;
}

.voice-message-heading span {
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
}

.voice-message-controls {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  gap: 5px;
  padding: 7px;
  background: #c0c0c0;
}

.voice-message-controls button,
.voice-message-controls a {
  min-height: 34px;
  padding: 7px;
  text-align: center;
  text-decoration: none;
}

#voice-record-start,
#voice-record-stop {
  min-height: 52px;
  font-size: 15px;
  font-weight: 900;
}

#voice-record-start:not(:disabled) {
  border-color: #ff8080 #660000 #660000 #ff8080;
  background: #cc0000;
  color: #ffffff !important;
}

#voice-record-start:not(:disabled) span {
  color: #ffffff;
}

#voice-record-stop:not(:disabled) {
  border-color: #808080 #000000 #000000 #808080;
  background: #000000;
  color: #ffffff !important;
}

#voice-record-start:disabled,
#voice-record-stop:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.voice-message-controls a {
  grid-column: 1 / -1;
  background: #ffff00;
  font-weight: 700;
}

.voice-message-panel audio {
  width: calc(100% - 14px);
  margin: 0 7px 7px;
}

.voice-submit-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  margin: 0 7px 7px;
  padding: 6px;
  border: 1px solid #808080;
  background: #e0e0e0;
}

.voice-submit-help {
  margin: 0;
  font-size: 11px;
  text-align: left;
}

.voice-submit-panel button {
  min-height: 34px;
  border: 2px outset #ffffff;
  border-radius: 0;
  background: #c0c0c0;
  color: #000000;
  font: 700 11px Arial, Helvetica, sans-serif;
}

.voice-submit-panel span {
  grid-column: 1 / -1;
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  font-weight: 700;
}

.voice-message-note {
  border-top: 1px solid #808080;
  background: #c0c0c0;
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
}

.local-only-notice {
  background: #ffff00;
}

.keyboard-note {
  margin: 5px 0 0;
  padding: 3px;
  border: 1px solid #000000;
  background: #ffffff;
  color: #000000;
  font-family: "Courier New", Courier, monospace;
}

.bear-exchange-page .footer {
  padding: 6px;
  background: #ffffff;
  color: #000000;
  font-family: "Times New Roman", Times, serif;
  font-size: 13px;
}

@media (max-width: 720px) {
  body.bear-exchange-page {
    width: calc(100% - 8px);
    margin-top: 4px;
  }

  .exchange-desk {
    grid-template-columns: minmax(0, 560px);
    padding: 6px;
  }

  .telephone-shell {
    order: -1;
  }

  .information-column {
    grid-template-columns: 1fr 1fr;
  }

  .survival-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 460px) {
  .bear-exchange-page .exchange-masthead h1 {
    font-size: 34px;
  }

  .information-column {
    grid-template-columns: 1fr;
  }

  .survival-panel {
    grid-column: auto;
  }

  .telephone-shell {
    padding: 5px;
    border-width: 2px;
  }

  .telephone-label {
    display: block;
    margin: 0 0 3px;
  }

  .telephone-label small {
    display: block;
  }

  .display-panel,
  .message-panel,
  .keypad-panel,
  .call-control-panel {
    margin-inline: 0;
  }

  .voice-message-controls {
    grid-template-columns: 1fr;
  }

  .voice-message-controls a {
    grid-column: auto;
  }
}

/* On phones, put the actionable controls before the long message and directory. */
@media (max-width: 720px) {
  .telephone-shell {
    display: flex;
    flex-direction: column;
  }

  .telephone-controls {
    display: contents;
  }

  .call-control-panel {
    order: 1;
  }

  .voice-message-panel {
    order: 2;
  }

  .keypad-panel {
    order: 3;
  }

  .message-panel {
    order: 4;
  }

  .directory-panel {
    order: 5;
  }

  .archive-entry-panel,
  .local-form-panel,
  .recent-voice-panel {
    order: 6;
  }

  #exchange-audio {
    order: 7;
  }

  .keyboard-note {
    order: 8;
  }
}

.voice-consent-box {
  margin: 5px 0;
  border: 2px inset #ffffff;
  background: #ffffff;
}

.voice-consent-heading {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 6px;
  border-bottom: 1px solid #000000;
  background: #ffff00;
  color: #000000;
  font: 700 11px "Courier New", Courier, monospace;
}

.bear-exchange-page .voice-consent-heading h2 {
  margin: 0;
  color: #000000;
  font: 700 11px "Courier New", Courier, monospace;
}

.voice-message-consent {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 0;
  padding: 10px 8px;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.voice-message-consent input {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 0;
}

.voice-consent-details {
  border-top: 1px solid #c0c0c0;
  background: #e0e0e0;
  font-size: 11px;
  text-align: left;
}

.voice-consent-details summary {
  padding: 7px 8px;
  color: #0000ee;
  font: 700 11px "Courier New", Courier, monospace;
  text-decoration: underline;
  cursor: pointer;
}

.voice-consent-details ul {
  margin: 0;
  padding: 2px 12px 4px 28px;
}

.voice-consent-details li {
  margin: 0 0 4px;
}

.voice-consent-details p {
  margin: 0;
  padding: 0 8px 8px;
}

.voice-consent-details a {
  font-weight: 700;
}

.storage-control {
  padding: 7px;
  border-top: 2px solid #ffff00;
  border-bottom: 1px solid #ffffff;
  background: #000000;
  color: #ffffff;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
}

.storage-control p {
  margin: 0 0 6px;
  text-align: left;
}

.storage-control-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.storage-control button,
.storage-control a {
  min-height: 28px;
  padding: 4px 7px;
  border: 2px outset #ffffff;
  border-radius: 0;
  background: #c0c0c0;
  color: #000000;
  font: 700 11px Arial, Helvetica, sans-serif;
  text-decoration: none;
}

.storage-control button[aria-pressed="true"] {
  border-style: inset;
  background: #ffff00;
}

#storage-status {
  color: #00ff00;
  font-weight: 700;
}

@media (max-width: 460px) {
  .voice-message-controls {
    grid-template-columns: 1fr 1fr;
  }

  #voice-record-start {
    grid-column: 1 / -1;
  }

  .voice-message-controls a {
    grid-column: 1 / -1;
  }

  .voice-submit-panel {
    grid-template-columns: 1fr;
  }
}
