/* Kartlegg – Felles komponenter: kort, knapper, skjemafelt, merkelapper og dialoger.
 * Del av designsystemet i assets/css/. Filene lastes i nummerrekkefølge fra index.html.
 */
.avatar {
  background: #e3f5f4;
  color: #1d6b6e;
  border-radius: 50%;
  width: 35px;
  height: 35px;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .09em;
}
.chip {
  border: 1px solid #dce6ed;
  background: #fff;
  color: #566b81;
  white-space: nowrap;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 10px;
  letter-spacing: .035em;
}
@media(max-width:360px){
  .chip {
    white-space: normal;
  }
}
/* section */
.section {
  border: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden;
  border-radius: var(--ui-radius-panel) !important;
  border-color: var(--ui-border-soft);
  margin-bottom: var(--ui-space-5);
  isolation: isolate;
}
@media(max-width:360px){
  .section {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}
/* section-header */
.section-header {
  display: flex;
  padding: 22px 25px 18px;
  gap: var(--ui-space-3);
  align-items: flex-start;
}
.section-header h2 {
  margin: 0 0 4px;
  font-size: clamp(18px,2vw,23px);
  line-height: 1.18;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.section-header>div:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.section-header p {
  margin: 0;
  color: var(--muted);
  max-width: 72ch;
  line-height: 1.55;
}
@media(max-width:770px){
  .section-header {
    padding: 17px 15px 15px;
    gap: 10px;
  }
}
@media(max-width:480px){
  .section-header h2 {
    font-size: 18px;
  }
}
.section-header h2 {
  font-weight: 820;
}
.section-header p {
  font-size: 13px;
}
/* section-symbol */
.section-symbol.cyan {
  background: #eaf8fc;
  color: #079bb5;
}
.section-symbol.teal {
  background: #e9f9f5;
  color: #099f90;
}
.section-symbol {
  place-items: center;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 13px !important;
  box-shadow: inset 0 1px 0 #fff6,0 5px 14px color-mix(in srgb,var(--ink) 8%,transparent);
}
.section-symbol .ui-icon-svg {
  width: 21px;
  height: 21px;
}
@media(max-width:770px){
  .section-symbol {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
    border-radius: 12px !important;
  }
}
@media(max-width:480px){
  .section-symbol {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
  }
}
.subtle-note {
  font-size: 12px;
  color: #6b7e94;
  margin-left: auto;
  white-space: nowrap;
}
@media(max-width:1100px){
  .subtle-note {
    display: none;
  }
}
.form-inner {
  padding: 0 25px 24px;
}
@media(max-width:770px){
  .form-inner {
    padding: 0 14px 15px;
  }
}
@media(max-width:1100px){
  /* fields */
  .fields {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
}
@media(max-width:770px){
  .fields {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}
@media(max-width:480px){
  .fields {
    grid-template-columns: 1fr;
  }
}
.fields {
  display: grid;
  gap: var(--ui-space-3);
}
/* field */
.field:nth-child(3n) .field-icon {
  background: #fff0f1;
  color: var(--coral);
}
.field:nth-child(4n) .field-icon {
  background: #ecf8f5;
  color: #13998a;
}
.field .required {
  color: #c8323d;
}
@media(max-width:1100px){
  .field.wide {
    grid-column: span 1;
  }
}
@media(max-width:770px){
  .field.wide {
    grid-column: span 2;
  }
}
@media(max-width:480px){
  .field.wide {
    grid-column: span 1;
  }
}
.field {
  border: 1px solid var(--line);
  padding: 15px;
  box-shadow: none !important;
}
.field :is(label,.field-label),
.meta-line label {
  font-size: 12px;
  font-weight: 780;
  line-height: 1.35;
  letter-spacing: -.006em;
}
.field .hint {
  font-size: 11px;
  line-height: 1.48;
  margin-top: 8px;
}
@media(max-width:770px){
  .field {
    padding: 13px;
  }
}
.field .field-icon {
  margin-top: -2px;
  border: 1px solid color-mix(in srgb,var(--accent) 18%,transparent);
}
.field .control-wrap :is(input,select) {
  font-weight: 680;
}
.field.is-complete:not(.v10-field-error)::after {
  content: "";
  position: absolute;
  right: 13px;
  top: 13px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ui-success);
  box-shadow: 0 0 0 3px color-mix(in srgb,var(--ui-success) 18%,transparent);
}
.field.is-complete .field-head {
  padding-right: 22px;
}
.field.v10-field-error::after,
.field.field-invalid::after {
  content: none;
}
.field-head {
  display: flex;
  margin-bottom: 10px;
  min-height: 25px;
  gap: 9px;
  align-items: flex-start;
}
@media(max-width:770px){
  .field-head {
    margin-bottom: 8px;
  }
}
/* field-icon */
.field-icon {
  color: var(--blue);
  background: #eaf6fd;
  height: 27px;
  width: 27px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex: none;
  font-size: 16px;
  font-weight: 800;
}
@media(max-width:770px){
  .field-icon {
    width: 22px;
    height: 22px;
    font-size: 13px;
  }
}
@media(max-width:480px){
  .field-icon {
    display: grid;
  }
}
/* control-wrap */
.control-wrap {
  display: flex;
  align-items: stretch;
  border: 1px solid #d9e2ed;
  background: #fbfcfe;
  overflow: hidden;
}
.control-wrap input,
.control-wrap select {
  width: 100%;
  border: 0;
  background: transparent;
  color: #162f4b;
  font-size: 16px;
  min-width: 0;
  padding: 9px 10px;
  outline: none;
}
.control-wrap:focus-within {
  outline: 2px solid #a6dddf;
  outline-offset: 1px;
}
.control-wrap select {
  font-size: 12px;
  cursor: pointer;
}
@media(max-width:410px){
  .control-wrap input,
  .control-wrap select {
    padding: 8px 7px;
  }
}
:is(.control-wrap,.meta-line input,.v081-search-field,input:not([type="radio"]):not([type="checkbox"]):not([type="range"]),select) {
  min-height: var(--ui-control-height);
  border-radius: var(--ui-radius-control);
}
.unit {
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 12px;
  white-space: nowrap;
  background: #f7f9fc;
  border-left: 1px solid #e5ebf2;
}
@media(max-width:410px){
  .unit {
    padding: 0 5px;
    font-size: 11px;
  }
}
.hint {
  margin: 8px 0 0;
  color: #5d6d82;
}
.toggle-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
/* choice */
.choice {
  position: relative;
}
.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.choice span {
  text-align: center;
  border: 1px solid #dfe6ef;
  padding: 10px 7px;
  border-radius: 9px;
  color: #5c6e82;
  font-size: 13px;
  font-weight: 700;
  background: #fbfcfe;
  min-height: 44px;
  display: grid;
  place-items: center;
}
.choice input:focus-visible+span {
  outline: 3px solid #80c9eb;
  outline-offset: 1px;
}
.choice input:checked+span {
  color: #bc4350;
  background: #fff0f1;
  border-color: #fac0c4;
  box-shadow: inset 0 0 0 1px currentColor;
}
/* form-actions */
.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--ui-space-3);
  padding-top: 18px;
  border-top: 1px solid var(--ui-border-soft);
}
@media(max-width:770px){
  .form-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }
  .form-actions>.btn-secondary {
    width: 100%;
  }
}
@media(min-resolution:1.8dppx) and (max-width:900px){
  .form-actions>* {
    min-width: 0;
  }
}
.form-actions .btn-primary {
  min-width: 165px;
}
/* btn */
.btn {
  border: 0;
  padding: 0 20px;
  font-weight: 800;
  font-size: 14px;
  transition: transform .15s,filter .15s;
}
.btn:hover {
  filter: brightness(.98);
  transform: translateY(-1px);
}
.btn .ui-icon-svg,
.btn-inline .ui-icon-svg,
.dialog-close .ui-icon-svg,
.mobile-toggle .ui-icon-svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
}
:is(.btn,.btn-inline,[data-icon]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
@media(max-width:770px){
  /* btn-primary */
  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}
.btn-primary,
.logo {
  background: var(--accent);
  color: var(--accent-on);
}
.logo {
  background: transparent;
  color: inherit;
}
.btn-primary:hover {
  filter: brightness(.95);
}
/* Kartlegg-blå er så mørk at «litt mørkere» ikke synes. Lys modus lysner knappen ved pekerover i stedet. */
:root[data-accent=blue]:not([data-theme=dark]) .btn-primary:hover {
  filter: brightness(1.3);
}
@media(hover:hover) and (pointer:fine){
  /* btn */
  :is(.btn,.btn-inline,.nav,.service-theme-option,.base-theme-option):hover {
    filter: brightness(.985);
  }
}
/* btn-primary */
.btn-primary {
  min-width: 245px;
  box-shadow: 0 6px 15px #f2576120;
  font-weight: 820;
  letter-spacing: -.008em;
}
@media(max-width:770px){
  /* På mobil er knappene fullbredde; minstebredden ville ellers klemme nabo-knapper i samme rad */
  .btn-primary {
    min-width: 0;
  }
}
.btn-secondary {
  background: #fff;
  color: #486079;
  border: 1px solid #dce5ef;
}
.notice {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
  background: #fff4e7;
  color: #99530c;
  border: 1px solid #ffdfae;
}
.notice.visible {
  display: block;
}
.info-layout {
  padding: 0 25px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media(max-width:770px){
  .info-layout {
    padding: 0 14px 15px;
    grid-template-columns: 1fr;
  }
}
/* info-panel */
.info-panel {
  padding: 17px;
  line-height: 1.6;
  font-size: 13px;
}
.info-panel strong {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}
.info-panel p {
  margin: 0;
}
.info-panel.safety {
  background: #fff3f4;
  color: #73353d;
  border: 1px solid #f7dde0;
}
.info-panel.education {
  background: #ecfaf7;
  color: #35665d;
  border: 1px solid #d6efe7;
}
/* details */
.details {
  border: 1px solid #e8edf3;
  margin: 0 25px 24px;
  border-radius: 10px;
  padding: 0 15px;
}
.details summary {
  padding: 14px 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}
.details ul {
  font-size: 12px;
  color: #566b80;
  line-height: 1.8;
  margin: 0 0 15px;
  padding-left: 19px;
}
@media(max-width:770px){
  .details {
    margin: 0 14px 17px;
  }
}
.page[hidden] {
  display: none !important;
}
/* meta-line */
.meta-line {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
}
.meta-line label {
  color: #415b77;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.meta-line input {
  height: 38px;
  border: 1px solid #dce5ef;
  background: #fff;
  padding: 6px 10px;
  color: #142743;
  max-width: 190px;
}
.meta-line small {
  color: #5a6d82;
  font-size: 11px;
  line-height: 1.5;
  flex: 1;
  min-width: 160px;
}
@media(max-width:770px){
  .meta-line {
    margin-bottom: 12px;
    display: grid !important;
    grid-template-columns: minmax(0,1.35fr) minmax(0,1fr);
    align-items: end;
  }
  .meta-line label {
    flex: 1;
    min-width: 0;
  }
  .meta-line input {
    width: 100%;
    box-sizing: border-box;
  }
  .meta-line small {
    grid-column: 1/-1;
  }
}
.meta-line input {
  font-weight: 680;
}
@media(max-width:770px){
  .meta-line .v10-now-button {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 78px;
    white-space: nowrap;
  }
}
@media(max-width:480px){
  /* Native date/time controls need more room than a two-column phone layout provides. */
  #page-vurdering .meta-line {
    grid-template-columns: minmax(0,1fr);
    align-items: stretch;
  }
  #page-vurdering .meta-line label,
  #page-vurdering .meta-line input {
    min-width: 0;
    width: 100%;
  }
  #page-vurdering .meta-line .v10-now-button {
    grid-column: 1;
    min-height: 44px;
  }
  #page-vurdering .meta-line small {
    grid-column: 1;
  }
}
/* actions-right */
.actions-right {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
@media(max-width:1100px){
  .actions-right {
    justify-content: flex-end;
  }
}
@media(max-width:770px){
  .actions-right {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
@media(max-width:410px){
  .actions-right {
    grid-template-columns: 1fr 1fr;
  }
  .actions-right .btn {
    padding: 0 8px;
    font-size: 12px;
  }
}
@media(min-resolution:1.8dppx) and (max-width:900px){
  .actions-right,
  .form-actions {
    flex-wrap: wrap;
  }
}
.btn-tertiary {
  background: #e9f9f6;
  color: #067e79;
  border: 1px solid #c9eee6;
}
.btn-inline {
  background: #fff;
  border: 1px solid #dae6ef;
  color: #316b8b;
  font-size: 12px;
  padding: 0 12px;
  cursor: pointer;
  font-weight: 750;
}
.panel-content {
  padding: 0 25px 25px;
}
@media(max-width:770px){
  .panel-content {
    padding: 0 14px 16px;
  }
}
.helper {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.table-scroll {
  overflow-x: auto;
  padding: 0 25px 24px;
}
@media(max-width:770px){
  .table-scroll {
    padding: 0 14px 15px;
  }
}
.empty-state {
  margin: 0 25px 25px;
  padding: 30px 18px;
  text-align: center;
  border: 1px dashed #d2e2eb;
  background: #fafcfe;
  border-radius: 12px;
  color: #5e7385;
  font-size: 14px;
}
@media(max-width:770px){
  .empty-state {
    margin: 0 14px 15px;
  }
}
/* diff-grid */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
  padding: 0 25px 24px;
}
@media(max-width:770px){
  .diff-grid {
    padding: 0 14px 15px;
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}
@media(max-width:410px){
  .diff-grid {
    grid-template-columns: 1fr 1fr;
  }
}
/* diff-box */
.diff-box {
  border: 1px solid #e4ecf4;
  border-radius: 10px;
  padding: 13px;
  background: #fff;
}
.diff-box small {
  display: block;
  color: #74889c;
  margin-bottom: 5px;
}
.diff-box strong {
  font-size: 20px;
}
.diff-box em {
  display: block;
  font-style: normal;
  font-size: 11px;
  color: #738496;
  margin-top: 3px;
}
.credit {
  display: inline-block;
  margin-top: 6px;
  font-weight: 650;
}
.credit a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
/* dialog-head */
.dialog-head {
  display: flex;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid #e8edf4;
  padding: 20px 24px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 2;
}
.dialog-head h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -.5px;
}
.dialog-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.dialog-head .section-symbol {
  height: 42px;
  width: 42px;
}
@media(max-width:770px){
  .dialog-head {
    padding: 14px 15px;
  }
  .dialog-head h2 {
    font-size: 18px;
  }
}
@media(max-width:410px){
  .dialog-head {
    gap: 8px;
  }
}
.dialog-close {
  margin-left: auto;
  border: 1px solid #e0e8ef;
  background: #f7f9fc;
  color: #425a71;
  border-radius: 10px;
  width: 40px;
  height: 40px;
  font-size: 19px;
  cursor: pointer;
  display: inline-grid !important;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
}
.dialog-body {
  padding: 23px 27px 25px;
}
@media(max-width:770px){
  .dialog-body {
    padding: 14px;
  }
}
.script-paper {
  border-left: 5px solid var(--coral);
  background: linear-gradient(125deg,#fff,#f7fbff);
  border-radius: 0 13px 13px 0;
  padding: 22px 23px;
  margin: 0 0 20px;
  box-shadow: inset 0 0 0 1px #edf1f6;
}
@media(max-width:770px){
  .script-paper {
    padding: 17px 16px;
  }
}
/* spoken-script */
.spoken-script {
  font-size: clamp(17px,2.2vw,20px);
  line-height: 1.88;
  font-weight: 500;
  white-space: pre-wrap;
  color: #162b44;
  overflow-wrap: anywhere;
  letter-spacing: -.12px;
}
.spoken-script::selection {
  background: #ffd9db;
}
@media(max-width:770px){
  .spoken-script {
    font-size: 18px;
    line-height: 1.75;
  }
}
.script-size {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  color: #5a6d82;
}
.script-size button {
  padding: 6px 11px;
  border: 1px solid #dce4ed;
  border-radius: 8px;
  background: #fff;
  color: #375772;
  font-size: 15px;
  cursor: pointer;
}
.copy-feedback {
  font-size: 13px;
  color: #26836c;
  margin-top: 10px;
  min-height: 18px;
}
.theme-switch {
  border: 1px solid var(--line);
  padding: 9px 12px;
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.detail-button {
  width: 100%;
  margin-top: 13px;
  border: 1px solid #bbdce9;
  color: #177696;
  background: #eaf8ff;
  border-radius: 9px;
  padding: 11px;
  font-weight: 750;
  cursor: pointer;
}
/* metric-select */
.metric-select {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}
.metric-select select {
  padding: 8px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
}
@media(max-width:770px){
  .metric-select {
    width: 100%;
    margin: 5px 0 0;
    justify-content: space-between;
  }
  .metric-select select {
    flex: 1;
  }
}
/* breakdown-table */
.breakdown-table {
  width: 100%;
  border-collapse: collapse;
}
.breakdown-table th,
.breakdown-table td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.breakdown-table td:last-child,
.breakdown-table th:last-child {
  text-align: right;
  font-weight: 800;
}
.breakdown-table tfoot {
  font-weight: 800;
  background: var(--bg);
}
/* swatch */
.swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex: none;
}
.swatch.coral {
  background: #ed5362;
}
.swatch.blue {
  background: #2679d4;
}
.swatch.green {
  background: #16865e;
}
.field-invalid {
  border: 2px solid #d83e52 !important;
}
#clinicalToolResult .save-standalone {
  margin-left: 8px;
  margin-top: 6px;
  min-height: 44px;
}
@media(max-width:620px){
  #clinicalToolResult .save-standalone {
    display: block;
    margin-left: 0;
    width: 100%;
  }
}
.extra-history {
  scroll-margin-top: 20px;
}
.extra-history-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 13px 19px;
  border-top: 1px solid var(--line);
}
.extra-history-toolbar span {
  font-size: 13px;
  color: var(--muted);
}
.service-theme-options {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 22px 0 0;
  padding: 18px 0 0;
  min-width: 0;
}
.service-theme-options legend {
  font-size: 13px;
  font-weight: 850;
  color: var(--ink);
  padding: 0 8px 0 0;
}
.service-theme-intro {
  font-size: 12px;
  line-height: 1.55;
  margin: 1px 0 12px;
  color: var(--muted);
}
.service-theme-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 9px;
}
/* service-theme-option */
.service-theme-option {
  display: grid;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 8px;
  row-gap: 2px;
  border: 1px solid var(--line);
  padding: 10px 9px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  grid-template-columns: 18px 58px minmax(0,1fr);
  min-height: 82px;
}
.service-theme-option:has(input:checked) {
  border: 2px solid var(--accent);
  background: var(--accent-bg);
  padding: 9px 8px;
  box-shadow: 0 0 0 2px var(--accent-bg),0 6px 16px #122c4415;
}
.service-theme-option input {
  grid-column: 1;
  grid-row: 1/3;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
}
.service-theme-option small {
  grid-column: 3;
  grid-row: 2;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.4;
}
.service-theme-option:focus-within {
  outline: 3px solid var(--accent-border);
  outline-offset: 1px;
}
@media(prefers-reduced-motion:reduce){
  .service-theme-option {
    animation: none !important;
  }
}
.service-theme-option .service-theme-preview::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 7px;
  border-radius: 6px 6px 0 0;
  z-index: 1;
  background: var(--preview-highlight);
}
.service-theme-option[data-service-option="hospital"] .service-theme-preview::before {
  background-color: #002244;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='7' viewBox='0 0 29 7'%3E%3Cpath d='M0 4H8L10 2L12 6L14 1L17 4H29' fill='none' stroke='%2349aaff' stroke-width='1'/%3E%3C/svg%3E");
}
.service-theme-option[data-service-option="ambulance"] .service-theme-preview::before {
  background: repeating-conic-gradient(from 90deg,#24884b 0 25%,#d0d9d7 0 50%) 0 0/14px 7px;
}
.service-theme-option[data-service-option="urgent"] .service-theme-preview::before {
  background: repeating-linear-gradient(115deg,#ffcc00 0 8px,#12503e 8px 12px);
}
.service-theme-option[data-service-option="homecare"] .service-theme-preview::before {
  background: repeating-linear-gradient(90deg,transparent 0 10px,#e3f7ec 10px 16px,transparent 16px 29px) center center/100% 1px no-repeat,
  #2b887d;
}
.service-theme-option:hover {
  box-shadow: 0 4px 14px #122c441b;
}
:is(.service-theme-option,.base-theme-option,.appearance-options label) {
  transition: border-color .18s ease,box-shadow .18s ease,background-color .18s ease;
}
:is(.service-theme-option,.base-theme-option,.appearance-options label):focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
/* service-theme-preview */
.service-theme-preview {
  grid-column: 2;
  grid-row: 1/3;
  display: block;
  border: 1px solid #0002;
  background: linear-gradient(155deg,var(--preview-base) 0 66%,var(--preview-highlight) 67% 100%);
  position: relative;
}
.service-theme-preview::after {
  content: "";
  position: absolute;
  border-radius: 2px;
  background: var(--preview-highlight);
  box-shadow: 0 8px 0 var(--preview-highlight);
}
.service-theme-preview {
  width: 58px;
  height: 48px;
  border-radius: 9px;
  background: linear-gradient(155deg,var(--preview-base) 0 36%,color-mix(in srgb,var(--preview-base) 70%,white) 37% 78%,var(--preview-highlight) 79%);
}
.service-theme-preview::before {
  width: 9px;
  bottom: 7px;
}
.service-theme-preview::after {
  left: 21px;
  right: 7px;
  top: 9px;
  height: 4px;
  box-shadow: 0 9px 0 color-mix(in srgb,var(--preview-highlight) 65%,white),0 18px 0 color-mix(in srgb,var(--preview-base) 35%,white);
}
.service-theme-preview,
.base-theme-preview {
  box-shadow: inset 0 1px 0 #fff8,0 6px 16px #071a3124;
}
.service-theme-label {
  grid-column: 3;
  grid-row: 1;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
}
@media(max-width:620px){
  #dockScore {
    flex: 1.45;
  }
}
@media(max-width:365px){
  #dockScore {
    flex: 1.25;
  }
}
@media(max-width:620px){
  #dockIsbar {
    flex: .65;
  }
}
@media(max-width:365px){
  #dockIsbar {
    flex: .55;
  }
}
@media(max-width:620px){
  #dockSave {
    flex: 1;
  }
}
@media(max-width:365px){
  #dockSave {
    flex: 1;
  }
}
.theme-layer-hint {
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
  margin: 9px 0;
}
/* wound-case-evidence */
.wound-case-evidence {
  padding: 14px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--accent-bg);
  font-size: 13px;
  line-height: 1.65;
}
.wound-case-evidence h5 {
  font-size: 13px;
  margin: 0 0 6px;
}
.wound-case-evidence ul {
  padding-left: 20px;
  margin: 0;
}
@media(max-width:770px){
  /* keyboard-open */
  .keyboard-open dialog[open] {
    position: fixed;
    top: var(--visible-top,0px);
    bottom: auto;
    margin-block: 8px;
  }
  /* Siden beholder samme høyde når tastaturet åpnes. Før ble luften nederst mindre, og da måtte siden hoppe
     hvis du var langt nede. */
}
.wound-image-unavailable {
  padding: 24px;
  color: #29445c;
  background: #f3f7fb;
  font-size: 14px;
  line-height: 1.6;
}
.release-v11 {
  margin-top: var(--ui-space-5);
}
@media(max-width:770px){
  /* section */
  .section {
    border-radius: 17px !important;
    margin-bottom: 15px;
  }
}
/* surface-action */
.surface-action {
  background: var(--ui-card-action);
}
.surface-action>.section-header {
  border-bottom: 1px solid var(--ui-border-soft);
  margin-bottom: 18px;
}
/* surface-result */
.surface-result>.section-header {
  border-bottom: 1px solid var(--ui-border-soft);
  margin-bottom: 2px;
}
@media(max-width:480px){
  /* surface-action */
  .surface-action>.section-header,
  .surface-result>.section-header {
    margin-bottom: 12px;
  }
}
/* surface-info */
.surface-info {
  background: var(--ui-card-info);
}
.surface-info .next-step-grid {
  padding-inline: 25px;
}
@media(max-width:770px){
  .surface-info .next-step-grid {
    padding-inline: 14px;
  }
}
.surface-style-options {
  border: 0;
  border-top: 1px solid var(--line);
  padding: 18px 0 0;
  margin: 18px 0 0;
  min-width: 0;
}
.surface-style-options legend {
  font-size: 13px;
  font-weight: 850;
  color: var(--ink);
  padding-right: 8px;
}
.surface-style-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 9px;
  margin-top: 8px;
}
@media(max-width:520px){
  .surface-style-grid {
    grid-template-columns: 1fr;
  }
}
/* surface-style-option */
.surface-style-option {
  display: grid;
  grid-template-columns: 18px 62px minmax(0,1fr);
  align-items: center;
  gap: 9px;
  min-height: 82px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}
.surface-style-option input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
}
.surface-style-option strong {
  display: block;
  font-size: 12px;
  line-height: 1.3;
}
.surface-style-option small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}
.surface-style-option:has(input:checked) {
  border: 2px solid var(--accent);
  padding: 9px;
  background: var(--accent-bg);
}
.surface-style-option:focus-within {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
@media(max-width:520px){
  .surface-style-option {
    min-height: 72px;
  }
}
@media(prefers-reduced-motion:reduce){
  .surface-style-option {
    transition: none !important;
  }
}
/* surface-style-preview */
.surface-style-preview {
  position: relative;
  width: 62px;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(68,91,117,.24);
}
.surface-style-preview::before,
.surface-style-preview::after {
  content: "";
  position: absolute;
  border-radius: 7px;
}
.surface-style-preview::before {
  inset: 7px 25px 7px 7px;
}
.surface-style-preview::after {
  inset: 7px 7px 7px 42px;
}
.surface-style-preview[data-surface-preview="solid"] {
  background: linear-gradient(145deg,#dce8f3,#eef4f9);
}
.surface-style-preview[data-surface-preview="solid"]::before,
.surface-style-preview[data-surface-preview="solid"]::after {
  background: #fff;
  box-shadow: 0 3px 8px #27466224;
}
.surface-style-preview[data-surface-preview="glass"] {
  background: radial-gradient(circle at 20% 10%,#8edfff,transparent 35%),linear-gradient(145deg,#1877e8,#6336c5 58%,#ec5d9b);
}
.surface-style-preview[data-surface-preview="glass"]::before,
.surface-style-preview[data-surface-preview="glass"]::after {
  background: linear-gradient(145deg,rgba(255,255,255,.52),rgba(218,241,255,.18));
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: inset 0 1px 0 #fff,0 5px 12px rgba(15,34,93,.22);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

/* Lyse knapper (hvit eller lys flate) må ikke gli inn i bakgrunnen: tydeligere kant i alle temaer og moduser. */
:is(.btn-secondary,.btn-tertiary,.detail-button,.account-google,.home-entry:not(.is-primary),.v10-now-button) {
  border-color: color-mix(in srgb,var(--ink) 32%,var(--paper)) !important;
}
:is(.btn-secondary,.btn-tertiary,.detail-button,.account-google,.home-entry:not(.is-primary),.v10-now-button):hover {
  border-color: var(--accent) !important;
}
/* Valgt side i menyene: tydeligere markering enn den lyse aksentflaten alene. */
:is(.sidebar .nav.active,.mobile-primary-link.active) {
  background: color-mix(in srgb,var(--accent) 16%,var(--paper)) !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb,var(--accent) 45%,transparent) !important;
}
/* Aksenttekst på lys aksentflate blir for svak i noen tjenestetemaer. Teksten dras mot tekstfargen,
   så den holder minst 4,5:1 i både lys og mørk modus. */
:is(.v10-now-button,.v099-category-button[aria-pressed=true],.mobile-primary-link.active) {
  color: color-mix(in srgb,var(--accent) 55%,var(--ink)) !important;
}

/* Tiltenkt formål: kort påminnelse ved resultater og i verktøy (formal.js). */
.purpose-note {
  margin: 14px 0 0;
  padding: 8px 12px;
  border-left: 3px solid var(--ui-attention);
  border-radius: 6px;
  background: var(--accent-bg,var(--paper));
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}
#resultater>.purpose-note {
  margin: 0 25px 16px;
}
@media(max-width:770px){
  #resultater>.purpose-note {
    margin: 0 14px 14px;
  }
}
.purpose-statement {
  padding: 12px 14px;
  border: 1px solid var(--accent-border,var(--line));
  border-radius: 12px;
  background: var(--accent-bg,var(--paper));
}
