.workbench-brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.workbench-brand-group .brand { flex: none; }
.offline-guide-link, .answer-feedback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: 12px;
  background: var(--soft);
  color: var(--deep);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
}
.offline-guide-link:is(:hover,:focus-visible,[aria-current=page]), .answer-feedback:is(:hover,:focus-visible) {
  border-color: var(--accent);
}
.offline-guide-link[aria-current=page] {
  background: color-mix(in srgb, var(--accent) 12%, var(--soft));
}
.offline-guide a {
  text-decoration: underline;
  text-underline-offset: .25em;
}
.offline-guide { max-width: 720px; margin-inline: auto; }
.offline-guide a { color: var(--deep); }
.offline-steps { display: grid; gap: 18px; margin: 0; padding-inline-start: 1.55em; }
.offline-steps li { padding-block-end: 16px; border-bottom: 1px solid var(--line); }
.offline-steps li::marker { color: var(--deep); font-weight: 700; }
.offline-steps h2 { margin: 0; font-size: 18px; }
.offline-steps p, .offline-note { margin-block: 6px 0; font-size: 15px; line-height: 1.65; }
.offline-steps p { color: var(--muted); }
.offline-guide .offline-note { margin-block-start: 16px; }

.question-card .answer-row { align-items: stretch; }
.question-card .answer-row > .answer-result {
  display: flex;
  flex: 1;
  align-items: center;
  min-width: 0;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--green);
  border-color: color-mix(in srgb, var(--green) 30%, var(--green-bg));
  border-radius: 12px;
  background: var(--green-bg);
  color: var(--green);
  font-size: 15px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.answer-feedback { flex: none; }

.glass-app .resource-calculator .departure-source {
  margin: 12px 0 0;
  line-height: 1.55;
}
.resource-calculator .departure-submit { margin-top: 11px; min-height: 42px; }
.resource-fields > div { min-width: 0; }
.resource-fields :is(input,select) { display: block; box-sizing: border-box; width: 100%; max-width: 100%; }
.departure-time-field { position: relative; min-width: 0; }
.departure-time-placeholder, .departure-time-field > svg { display: none; }
@media (max-width: 720px) {
  .resource-calculator .departure-time-field input { padding-inline-end: 37px; }
  .departure-time-field input:invalid:not(:focus) { color: transparent; }
  .departure-time-field input:invalid:not(:focus)::-webkit-datetime-edit { visibility: hidden; }
  .departure-time-field input:invalid:not(:focus)::-webkit-date-and-time-value { visibility: hidden; }
  .departure-time-field input::-webkit-calendar-picker-indicator {
    position: absolute;
    inset-inline-end: 7px;
    top: 50%;
    width: 24px;
    height: 32px;
    transform: translateY(-50%);
    opacity: 0;
  }
  .departure-time-field input:invalid:not(:focus) + .departure-time-placeholder,
  .departure-time-field > svg {
    position: absolute;
    top: 50%;
    display: block;
    transform: translateY(-50%);
    pointer-events: none;
  }
  .departure-time-placeholder { inset-inline-start: 10px; color: var(--muted); }
  .departure-time-field > svg { inset-inline-end: 11px; width: 18px; height: 18px; color: var(--accent); }
}
.departure-prompt {
  grid-column: 1 / -1;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--muted);
  background: var(--soft);
  font-size: 13px;
}
.resource-links {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 1px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--line);
}
.resource-links li { min-width: 0; background: var(--paper); }
.resource-links li:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 520px) {
  .resource-links { grid-template-columns: minmax(0,1fr); }
}
.resource-links a {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 10px 15px;
  text-decoration: none;
}
.resource-links a:hover { background: var(--soft); }
.resource-links a:focus-visible { position: relative; z-index: 1; outline-offset: -3px; }
.resource-links strong, .resource-links small { display: block; }
.resource-links small { color: var(--muted); }
.resource-links svg, .case-search svg { width: 17px; height: 17px; flex: 0 0 17px; color: var(--accent); }
.case-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  min-height: 44px;
  margin-bottom: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.case-search:focus-within { border-color: var(--accent); }
.case-search input { min-width: 0; width: 100%; border: 0; background: transparent; color: var(--ink); font-size: 16px; }
.glass-app .case-directory .case-card[hidden] { display: none; }
.study-notice {
  padding: 12px 14px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: var(--soft);
}
.workbench-feedback {
  width: min(510px,calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 20px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
}
.workbench-feedback::backdrop { background: #121b298c; }
.workbench-feedback form { display: grid; gap: 10px; }
.workbench-feedback .feedback-context { max-height: 110px; overflow: auto; padding: 8px 10px; background: var(--soft); border-radius: 8px; }
.workbench-feedback label { display: grid; gap: 5px; font-weight: 650; }
.workbench-feedback small, .workbench-feedback .feedback-result { color: var(--muted); font-weight: 400; }
.workbench-feedback :is(select,textarea,input) { min-width: 0; width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--paper); font-size: 16px; }
.feedback-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.glass-app .footer-submission { min-height: 44px; padding: 0 4px; color: var(--deep); }
@media (max-width: 480px) {
  .glass-app .bank-controls .bank-tabs { margin-bottom: 10px; }
  .glass-app .bank-controls .bank-tabs > button { min-height: 44px; }
  .glass-app .bank-controls .bank-heading { margin-bottom: 8px; }
  .glass-app .bank-controls .bank-search { min-height: 48px; padding-block: 3px; }
}
