* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: #edf0f2; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: #27333c; background: #edf0f2; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size: 17px; line-height: 1.45; }
button,input,textarea,select { color: inherit; font: inherit; }
button,.file-button { min-height: 48px; padding: 11px 16px; border: 1px solid #bbc7cf; border-radius: 9px; color: #30485a; background: #f7f9fa; font-weight: 700; -webkit-appearance: none; }
button:active,.file-button:active { background: #e3e9ed; }
button.primary { color: #fff; border-color: #4e6d84; background: #4e6d84; }
button[disabled] { opacity: .45; }
input,textarea,select { display: block; width: 100%; min-height: 50px; margin-top: 6px; padding: 11px 12px; border: 1px solid #bfc9d0; border-radius: 8px; background: #fff; -webkit-appearance: none; }
textarea { min-height: 100px; resize: vertical; }
label { display: block; margin-top: 14px; color: #485863; font-size: 15px; font-weight: 700; }
h1,h2,p { margin-top: 0; }
h1 { margin-bottom: 10px; color: #263746; font-size: 30px; }
h2 { margin-bottom: 12px; color: #2d4050; font-size: 23px; }
.topbar { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: space-between; justify-content: space-between; min-height: 72px; padding: 10px 18px; border-bottom: 1px solid #ccd4d9; background: #fff; }
.topbar strong,.topbar small { display: block; }
.topbar strong { font-size: 19px; }.topbar small { color: #6d7880; font-size: 12px; }
.full-link { padding: 9px 11px; color: #49677d; border: 1px solid #c8d2d9; border-radius: 8px; text-decoration: none; }
main { width: 100%; max-width: 1050px; margin: 0 auto; padding: 18px; }
.panel,.card { padding: 22px; border: 1px solid #d0d7dc; border-radius: 12px; background: #fff; box-shadow: 0 4px 18px rgba(42,55,64,.06); }
.centered { min-height: 330px; padding-top: 90px; text-align: center; }
.spinner { width: 40px; height: 40px; margin: 0 auto 18px; border: 4px solid #d4dce1; border-top-color: #4e6d84; border-radius: 50%; -webkit-animation: spin .8s linear infinite; animation: spin .8s linear infinite; }
@-webkit-keyframes spin { to { -webkit-transform: rotate(360deg); } } @keyframes spin { to { transform: rotate(360deg); } }
.auth { max-width: 520px; margin: 50px auto; }
.eyebrow { display: block; margin-bottom: 7px; color: #59748a; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.error { margin-top: 12px; color: #a13e45; font-weight: 700; }
.toolbar,.editor-bar,.card-head,.modal-head { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: space-between; justify-content: space-between; gap: 14px; }
.toolbar h1 { margin: 0; }
.new-buttons,.button-row,.bottom-actions { display: -webkit-flex; display: flex; gap: 10px; margin: 14px 0; }
.new-buttons button,.button-row button,.bottom-actions button { -webkit-flex: 1; flex: 1; }
.search { margin: 18px 0; }
.document-list { display: block; }
.document-row { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: space-between; justify-content: space-between; width: 100%; min-height: 76px; margin-bottom: 9px; padding: 13px 15px; border: 1px solid #cad3d9; border-radius: 10px; color: #263744; background: #fff; text-align: left; }
.document-row div,.document-row strong,.document-row small { display: block; }
.document-row strong { font-size: 18px; }.document-row small { margin-top: 3px; color: #66747e; font-size: 13px; font-weight: 400; }
.document-row span { color: #4c697f; font-size: 23px; }
.empty { padding: 36px 15px; color: #687781; text-align: center; }
.safety-note { margin: 20px 0 0; padding: 13px; border-radius: 8px; color: #66582e; background: #fff8e3; font-size: 13px; }
.editor-bar { position: -webkit-sticky; position: sticky; z-index: 20; top: 0; margin: -18px -18px 12px; padding: 10px 18px; border-bottom: 1px solid #ccd4d9; background: rgba(255,255,255,.97); }
.editor-bar div { min-width: 0; text-align: center; }.editor-bar strong,.editor-bar small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.editor-bar small { color: #6c7780; font-size: 12px; }
.jumpbar { display: -webkit-flex; display: flex; overflow-x: auto; margin: 0 0 13px; padding: 8px; border: 1px solid #d1d8dd; border-radius: 10px; background: #fff; -webkit-overflow-scrolling: touch; }
.jumpbar a { min-width: 92px; padding: 9px; color: #49677d; text-align: center; text-decoration: none; font-size: 14px; font-weight: 800; }
.card { margin-bottom: 14px; scroll-margin-top: 95px; }
.card-head p { margin-bottom: 0; color: #6c7880; font-size: 14px; }
.fields { display: block; }
.fields.two { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; margin: 0 -6px; }
.fields.two > label { width: 50%; padding: 0 6px; }
.hint { margin: 9px 0 0; color: #687781; font-size: 13px; }
.check-row { margin-top: 9px; padding: 13px; border: 1px solid #d3dadf; border-radius: 9px; background: #fafbfc; }
.check-title { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; gap: 10px; }
.check-title input { min-height: 44px; margin: 0; }
.check-title button { -webkit-flex: 0; flex: 0; min-width: 48px; padding: 8px; color: #9c3f43; }
.check-fields { display: -webkit-flex; display: flex; margin: 5px -5px 0; }
.check-fields label { width: 50%; padding: 0 5px; }
.timer { margin: 12px 0; padding: 18px; border: 1px solid #c7d3dc; border-radius: 10px; background: #eaf0f4; text-align: center; }
.timer strong,.timer span { display: block; }.timer strong { color: #2d4658; font-size: 42px; font-variant-numeric: tabular-nums; }.timer span { color: #60727f; font-size: 13px; }
.time-entry { display: -webkit-flex; display: flex; -webkit-justify-content: space-between; justify-content: space-between; margin-top: 7px; padding: 9px 11px; border: 1px solid #d8dfe3; border-radius: 7px; background: #fafbfc; font-size: 14px; }
.summary { padding: 11px; border: 1px solid #d8dfe3; border-top: 5px solid #637e93; border-radius: 9px; background: #fafbfc; }
.summary.follow { border-top-color: #b47e35; }.summary.important { border-top-color: #aa4b4f; }
.file-button { display: inline-block; margin: 0; }
.photo-list { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; margin: 12px -6px 0; }
.photo-card { width: 50%; padding: 6px; }
.photo-card-inner { overflow: hidden; border: 1px solid #ccd5db; border-radius: 9px; background: #fff; }
.photo-card img { display: block; width: 100%; height: 220px; object-fit: contain; background: #e9edf0; }
.photo-card-body { padding: 10px; }.photo-card-body input,.photo-card-body select { min-height: 44px; }.photo-card-actions { display: -webkit-flex; display: flex; gap: 7px; margin-top: 8px; }.photo-card-actions button { -webkit-flex: 1; flex: 1; min-height: 44px; padding: 8px; font-size: 14px; }.photo-card-actions .remove { color: #9b3d42; }
.bottom-actions { margin: 20px 0 50px; }
.overlay { position: fixed; z-index: 100; top: 0; right: 0; bottom: 0; left: 0; overflow: auto; padding: 14px; background: rgba(31,41,48,.72); -webkit-overflow-scrolling: touch; }
.modal { max-width: 950px; margin: 0 auto; padding: 18px; border-radius: 11px; background: #fff; }
.canvas-wrap { overflow: auto; margin-top: 12px; padding: 8px; border: 1px solid #ccd5db; border-radius: 9px; background: #e8ecef; -webkit-overflow-scrolling: touch; }
#photoCanvas { display: block; max-width: 100%; max-height: 600px; background: #fff; touch-action: none; }
.toast { position: fixed; z-index: 200; right: 16px; bottom: 16px; max-width: 520px; padding: 13px 16px; border: 1px solid #aebfcb; border-radius: 9px; color: #fff; background: #39556a; box-shadow: 0 8px 26px rgba(30,40,48,.25); }

.knowledge-launch { display: -webkit-flex; display: flex; width: 100%; -webkit-align-items: center; align-items: center; -webkit-justify-content: space-between; justify-content: space-between; margin: 2px 0 16px; padding: 15px 17px; color: #304c60; border-color: #b8c8d3; background: #eef4f7; text-align: left; }
.knowledge-launch strong,.knowledge-launch span { display: block; }.knowledge-launch span { color: #60727f; font-size: 14px; font-weight: 400; }
.knowledge-intro { padding: 13px 15px; border-left: 5px solid #5d788c; background: #fff; color: #53636e; }
.tablet-knowledge-list { margin-top: 12px; }
.tablet-knowledge-card { display: block; width: 100%; min-height: 118px; margin-bottom: 10px; padding: 15px; color: #293b48; background: #fff; text-align: left; }
.tablet-knowledge-card span,.tablet-knowledge-card strong,.tablet-knowledge-card small,.tablet-knowledge-card em { display: block; }
.tablet-knowledge-card span { color: #5b788d; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.tablet-knowledge-card strong { margin: 7px 0 5px; font-size: 19px; }.tablet-knowledge-card small { color: #5e6c75; font-size: 14px; font-weight: 400; }.tablet-knowledge-card em { margin-top: 8px; color: #526d80; font-size: 12px; font-style: normal; }
.knowledge-modal { max-width: 1050px; color: #27343d; }.knowledge-modal .modal-head { position: -webkit-sticky; position: sticky; z-index: 2; top: -18px; margin: -18px -18px 15px; padding: 15px 18px; border-bottom: 1px solid #ccd5db; background: rgba(255,255,255,.98); }.knowledge-modal .modal-head strong { font-size: 22px; }.knowledge-modal h2 { margin: 24px 0 9px; font-size: 19px; }
.tablet-knowledge-subtitle { color: #5e6d76; font-weight: 700; }.tablet-knowledge-summary { padding: 14px; border-left: 5px solid #57758b; background: #edf3f6; font-weight: 700; }
.tablet-table-wrap { overflow-x: auto; border: 1px solid #ccd6dc; border-radius: 8px; -webkit-overflow-scrolling: touch; }.tablet-table-wrap table { width: 100%; border-collapse: collapse; font-size: 14px; }.tablet-table-wrap th,.tablet-table-wrap td { padding: 9px; border-bottom: 1px solid #d9e0e4; text-align: left; vertical-align: top; }.tablet-table-wrap th { background: #eef2f4; }.tablet-table-wrap td:first-child { font-weight: 800; }
.tablet-warning { margin-top: 20px; padding: 13px 15px; border: 1px solid #dec694; border-radius: 8px; background: #fff8e8; }.tablet-warning h2 { margin-top: 0; color: #725321; }.tablet-warning li { margin-bottom: 7px; }
.tablet-steps { padding-left: 28px; }.tablet-steps li { margin-bottom: 10px; padding: 11px; border: 1px solid #d5dde2; border-radius: 8px; }.tablet-steps strong { color: #304b5e; }.tablet-steps p { margin: 4px 0 0; color: #53636d; }
.tablet-checks { padding: 0; list-style: none; }.tablet-checks li { margin-bottom: 7px; padding: 9px 11px; border: 1px solid #d7dfe3; border-radius: 7px; background: #f8fafb; }
.tablet-sources { margin-top: 22px; padding: 14px; border: 1px solid #c8d6de; border-radius: 9px; background: #eef4f6; }.tablet-sources h2 { margin-top: 0; }.tablet-sources p { padding-bottom: 8px; border-bottom: 1px solid #d3dee4; }.tablet-sources a { color: #335f7b; font-weight: 800; }.tablet-sources small { display: block; margin-top: 4px; color: #63757f; font-size: 12px; }

@media (max-width: 680px) {
  body { font-size: 16px; } main { padding: 10px; }.panel,.card { padding: 15px; }.editor-bar { margin: -10px -10px 10px; padding: 8px 10px; }.editor-bar button { padding: 8px 10px; font-size: 14px; }
  .fields.two > label,.photo-card { width: 100%; }.toolbar,.card-head { -webkit-align-items: flex-start; align-items: flex-start; }.card-head { -webkit-flex-direction: column; flex-direction: column; }.card-head button,.card-head .file-button { width: 100%; text-align: center; }.check-fields { display: block; margin: 0; }.check-fields label { width: 100%; padding: 0; }.timer strong { font-size: 34px; }
}

@media print {
  .topbar,.editor-bar,.jumpbar,.bottom-actions,.card button,.file-button,.safety-note { display: none !important; }
  html,body { background: #fff; } main { max-width: none; padding: 0; }.card { border: 0; box-shadow: none; page-break-inside: avoid; }
}

/* Dokumentlås – v1.13.1 */
.tablet-lock-notice{display:grid;gap:4px;margin:10px 0 14px;padding:12px 14px;border:1px solid #b9d0c3;border-radius:10px;background:#eff7f2;color:#355d49}.tablet-lock-notice[hidden]{display:none!important}.tablet-lock-notice strong{font-size:14px}.tablet-lock-notice span{color:#5f7167;font-size:12px;line-height:1.4}


/* Autolagring og lokal gjenoppretting – v1.13.1 */
#saveState.save-saving{color:#446c85}#saveState.save-error{color:#a2484e;font-weight:800}.tablet-recovery{margin:10px 0 16px;padding:14px;border:1px solid #b8ccd7;border-radius:10px;background:#eef5f8}.tablet-recovery[hidden]{display:none!important}.tablet-recovery strong,.tablet-recovery span{display:block}.tablet-recovery strong{color:#304e60}.tablet-recovery span{margin-top:4px;color:#607580;font-size:13px}.tablet-recovery .button-row{margin-bottom:0}


/* v1.14.5 – Face ID / passkey */
.tablet-auth-divider{display:flex;align-items:center;gap:10px;margin:14px 0;color:#7f8d99;font-size:11px;font-weight:700;text-transform:uppercase}
.tablet-auth-divider:before,.tablet-auth-divider:after{content:"";height:1px;flex:1;background:#d9e0e5}
#tabletPasskeyLogin{width:100%;min-height:48px}
#tabletPasskeyHint{text-align:center;margin-top:8px}
