/* House of Share – intern. Sort/hvid, redaktionelt, efter brandbogen. */
:root {
  --white: #ffffff;
  --black: #010101;
  --ink: #111111;
  --ink-2: #4a4a4a;
  --ink-3: #8a8a8a;
  --ink-4: #b5b5b5;
  --line: #e6e6e6;
  --line-2: #f2f2f2;
  --wash: #fafafa;
  --serif: "Literata", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --script: "Pinyon Script", cursive;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--white); color: var(--ink); font-family: var(--sans); font-size: 14.5px; line-height: 1.6; -webkit-font-smoothing: antialiased; font-feature-settings: "ss01", "cv11"; }
a { color: inherit; }
::selection { background: var(--black); color: var(--white); }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; }
.boot { display: grid; place-items: center; height: 100vh; }
.boot img { width: 64px; opacity: .9; animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .35; } }

/* typografi */
.label, .eyebrow { font-size: 10.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.eyebrow { margin-bottom: 14px; }
h1.page-title { font-family: var(--serif); font-weight: 400; font-size: 46px; line-height: 1.08; letter-spacing: -.01em; margin: 0 0 10px; font-variation-settings: "opsz" 72; }
.sub { color: var(--ink-3); margin: 0 0 40px; max-width: 560px; }
h2.section { display: flex; align-items: baseline; gap: 14px; font-family: var(--serif); font-weight: 400; font-size: 24px; margin: 56px 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--black); }
h2.section .num { font-family: var(--sans); font-size: 11px; letter-spacing: .14em; color: var(--ink-3); }
.script { font-family: var(--script); font-weight: 400; }
.muted { color: var(--ink-3); }
.small { font-size: 12.5px; }

/* ---------- layout ---------- */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar { background: var(--white); border-right: 1px solid var(--line); padding: 28px 18px 18px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 4px 0 26px; text-decoration: none; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.brand .mono { width: 46px; }
.brand .word { width: 128px; }
.nav-label { font-size: 10px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); padding: 22px 8px 8px; display: flex; justify-content: space-between; align-items: center; }
.nav-item { display: flex; align-items: baseline; gap: 12px; padding: 7px 8px; text-decoration: none; color: var(--ink-2); cursor: pointer; border: 0; background: none; width: 100%; text-align: left; font-size: 14px; position: relative; transition: color .15s; }
.nav-item:hover { color: var(--black); }
.nav-item .ico { width: 18px; flex: none; font-size: 10.5px; letter-spacing: .08em; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.nav-item.active { color: var(--black); font-weight: 500; }
.nav-item.active::before { content: ""; position: absolute; left: -18px; top: 8px; bottom: 8px; width: 2px; background: var(--black); }
.nav-item.active .ico { color: var(--black); }
.nav-item .count { margin-left: auto; font-size: 11px; color: var(--ink-3); }
.tree { display: flex; flex-direction: column; }
.tree .nav-item { padding: 5px 4px; font-size: 13.5px; align-items: center; }
.tree .nav-item .ico { font-size: 13px; filter: grayscale(1); width: 18px; text-align: center; }
.tree-row { display: flex; align-items: center; position: relative; }
.tree-row.active .nav-item { color: var(--black); font-weight: 500; }
.tree-row.active::before { content: ""; position: absolute; left: -18px; top: 6px; bottom: 6px; width: 2px; background: var(--black); }
.tree-toggle { width: 16px; height: 22px; flex: none; border: 0; background: none; cursor: pointer; color: var(--ink-4); font-size: 8px; padding: 0; }
.tree-toggle:hover { color: var(--black); }
.tree-add { opacity: 0; border: 0; background: none; cursor: pointer; color: var(--ink-3); padding: 0 6px; font-size: 15px; }
.tree-row:hover .tree-add { opacity: 1; }
.tree-children { margin-left: 14px; border-left: 1px solid var(--line); padding-left: 4px; }
.icon-btn { border: 0; background: none; cursor: pointer; color: var(--ink-3); font-size: 15px; padding: 0 6px; line-height: 1.4; transition: color .15s; }
.icon-btn:hover { color: var(--black); }
.sidebar-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.me { display: flex; align-items: center; gap: 10px; padding: 8px; text-decoration: none; }
.me small { display: block; color: var(--ink-3); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--black); color: var(--white); display: grid; place-items: center; font-size: 11px; font-weight: 500; letter-spacing: .04em; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.avatar.sm { width: 22px; height: 22px; font-size: 9px; }

.main { min-width: 0; }
.topbar { display: none; }
.content { max-width: 1120px; margin: 0 auto; padding: 64px 64px 120px; animation: rise .35s var(--ease); }
.content.narrow { max-width: 800px; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.head-row .sub { margin: 0; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 20px; border: 1px solid var(--black); background: var(--black); color: var(--white); cursor: pointer; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; white-space: nowrap; border-radius: 0; transition: background .15s, color .15s; }
.btn:hover { background: var(--white); color: var(--black); }
.btn.secondary { background: var(--white); color: var(--black); border-color: var(--black); }
.btn.secondary:hover { background: var(--black); color: var(--white); }
.btn.ghost { background: none; border-color: transparent; color: var(--ink-2); padding: 0 8px; }
.btn.ghost:hover { color: var(--black); text-decoration: underline; text-underline-offset: 4px; }
.btn.danger { background: var(--white); color: var(--ink-3); border-color: var(--line); }
.btn.danger:hover { color: var(--black); border-color: var(--black); background: var(--white); }
.btn.small { height: 30px; padding: 0 12px; font-size: 10px; }
.btn:disabled { opacity: .4; cursor: default; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.field label { font-size: 10.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.field .hint { font-size: 12px; color: var(--ink-3); }
.input, select.input, textarea.input { width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid var(--ink-4); border-radius: 0; background: transparent; outline: none; transition: border-color .15s; }
select.input { padding-right: 18px; appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23111' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat right 2px center; cursor: pointer; }
.input:focus { border-bottom-color: var(--black); }
.input::placeholder { color: var(--ink-4); }
textarea.input { min-height: 96px; resize: vertical; border: 1px solid var(--line); padding: 12px; }
textarea.input:focus { border-color: var(--black); }
.row { display: flex; gap: 24px; flex-wrap: wrap; }
.row > * { flex: 1 1 180px; }
.card { background: var(--white); border: 1px solid var(--line); padding: 32px; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; font-size: 10px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; background: var(--white); }
.pill.dark, .pill.red { background: var(--black); color: var(--white); border-color: var(--black); }
.pill.gold, .pill.green { border-color: var(--black); color: var(--black); }
.empty { padding: 44px 24px; text-align: center; color: var(--ink-3); border: 1px solid var(--line); font-size: 13.5px; }
.empty a { color: var(--black); }
.empty .script { display: block; font-size: 30px; color: var(--ink-4); margin-bottom: 4px; }

/* ---------- forside ---------- */
.hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 36px; border-bottom: 1px solid var(--line); margin-bottom: 8px; position: relative; }
.hero .script { position: absolute; right: 0; top: -10px; font-size: 64px; color: var(--line); pointer-events: none; white-space: nowrap; line-height: 1; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.stat { padding: 28px 24px 28px 0; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: 28px; }
.stat .n { font-family: var(--serif); font-size: 44px; font-weight: 400; line-height: 1; font-variant-numeric: lining-nums; }
.stat .l { color: var(--ink-3); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; margin-top: 12px; }
.grid-2 { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid-3 .stat:first-child { padding-left: 0; }
.list { border-top: 1px solid var(--line); }
.list-item { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; cursor: pointer; transition: padding .2s var(--ease); }
.list-item:hover { padding-left: 8px; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item .ico { filter: grayscale(1); }
.list-item .idx { font-size: 10.5px; letter-spacing: .1em; color: var(--ink-4); width: 22px; font-variant-numeric: tabular-nums; }
.date-badge { width: 52px; text-align: center; border: 1px solid var(--black); padding: 6px 0 5px; flex: none; }
.date-badge .d { font-family: var(--serif); font-size: 22px; line-height: 1.05; }
.date-badge .m { font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }

/* ---------- håndbog ---------- */
.page-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.page-icon { font-size: 34px; line-height: 1; cursor: pointer; border: 0; background: none; padding: 4px; filter: grayscale(1); }
.page-icon:hover { filter: none; }
.title-input { font-family: var(--serif); font-weight: 400; font-size: 46px; line-height: 1.12; letter-spacing: -.01em; border: 0; outline: none; background: transparent; width: 100%; padding: 0; font-variation-settings: "opsz" 72; }
.title-input::placeholder { color: var(--ink-4); }
.page-meta { display: flex; gap: 12px; align-items: center; color: var(--ink-3); font-size: 12px; margin: 14px 0 26px; padding-bottom: 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.breadcrumbs { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 28px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--black); }
.toolbar { position: sticky; top: 0; z-index: 5; display: flex; gap: 0; flex-wrap: wrap; padding: 6px 0; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.toolbar button { border: 0; background: none; padding: 5px 9px; cursor: pointer; color: var(--ink-3); font-size: 12.5px; min-width: 30px; transition: color .15s; }
.toolbar button:hover { color: var(--black); }
.toolbar .sep { width: 1px; background: var(--line); margin: 5px 6px; }
.editor { outline: none; min-height: 50vh; font-size: 16px; line-height: 1.75; color: var(--ink); }
.editor:empty::before { content: "Begynd at skrive …"; color: var(--ink-4); }
.editor h1 { font-family: var(--serif); font-size: 32px; font-weight: 400; margin: 36px 0 10px; line-height: 1.2; }
.editor h2 { font-family: var(--serif); font-size: 25px; font-weight: 400; margin: 30px 0 8px; line-height: 1.25; }
.editor h3 { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; margin: 26px 0 6px; }
.editor p { margin: 0 0 12px; }
.editor a { color: var(--black); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.editor blockquote { font-family: var(--serif); font-size: 21px; font-style: italic; line-height: 1.5; border-left: 1px solid var(--black); margin: 22px 0; padding: 2px 22px; color: var(--ink); }
.editor .callout { border: 1px solid var(--black); padding: 16px 20px; margin: 18px 0; }
.editor code { background: var(--line-2); padding: 1px 5px; font-size: .9em; }
.editor pre { background: var(--line-2); padding: 14px 18px; overflow-x: auto; }
.editor hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.editor ul.todo { list-style: none; padding-left: 2px; }
.editor ul.todo li { position: relative; padding-left: 28px; }
.editor ul.todo li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border: 1px solid var(--black); background: var(--white); cursor: pointer; }
.editor ul.todo li[data-checked="true"] { color: var(--ink-3); text-decoration: line-through; }
.editor ul.todo li[data-checked="true"]::before { background: var(--black); }
.editor ul.todo li[data-checked="true"]::after { content: ""; position: absolute; left: 4.5px; top: 9px; width: 4px; height: 7px; border: solid var(--white); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.save-state { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.subpages { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.subpages a { text-decoration: none; padding: 6px 12px; border: 1px solid var(--line); font-size: 13px; transition: border-color .15s; }
.subpages a:hover { border-color: var(--black); }
.subpages a, .search-results a, .breadcrumbs a { filter: grayscale(1); }
.emoji-pop { position: absolute; z-index: 50; background: var(--white); border: 1px solid var(--black); padding: 8px; display: grid; grid-template-columns: repeat(8, 32px); gap: 2px; }
.emoji-pop button { border: 0; background: none; font-size: 19px; cursor: pointer; height: 32px; filter: grayscale(1); }
.emoji-pop button:hover { background: var(--line-2); }

/* ---------- opgaver ---------- */
.board { display: grid; grid-template-columns: repeat(3, minmax(240px, 1fr)); gap: 28px; align-items: start; }
.column { min-height: 220px; padding-top: 4px; }
.column.drag-over { background: var(--wash); outline: 1px dashed var(--black); outline-offset: 6px; }
.column-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 0 12px; margin-bottom: 14px; border-bottom: 1px solid var(--black); }
.column-head h3 { margin: 0; font-family: var(--serif); font-size: 22px; font-weight: 400; }
.column-head .pill { border: 0; padding: 0; color: var(--ink-3); }
.task { background: var(--white); border: 1px solid var(--line); padding: 16px; margin-bottom: 10px; cursor: grab; transition: border-color .15s, transform .2s var(--ease); }
.task:hover { border-color: var(--black); }
.task.dragging { opacity: .35; }
.task .t { font-size: 14.5px; margin-bottom: 12px; line-height: 1.45; }
.task .meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.task .meta .avatar { margin-left: auto; }
.quick-add { width: 100%; border: 0; background: none; padding: 10px 0; color: var(--ink-3); cursor: pointer; text-align: left; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.quick-add:hover { color: var(--black); }
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.seg { display: inline-flex; border: 1px solid var(--black); }
.seg button { border: 0; background: var(--white); padding: 0 14px; height: 38px; cursor: pointer; font-size: 10.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.seg button + button { border-left: 1px solid var(--black); }
.seg button.on { background: var(--black); color: var(--white); }

/* ---------- tabeller ---------- */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-weight: 500; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); padding: 12px 12px 12px 0; border-bottom: 1px solid var(--black); }
.table td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table select.input { padding: 4px 18px 4px 0; width: auto; border-bottom-color: transparent; font-size: 13px; }
.table select.input:hover { border-bottom-color: var(--black); }
.table-wrap { overflow-x: auto; }

/* ---------- modal ---------- */
.overlay { position: fixed; inset: 0; background: rgba(255,255,255,.82); backdrop-filter: blur(3px); display: grid; place-items: center; z-index: 100; padding: 16px; animation: fade .15s ease; }
.modal { background: var(--white); border: 1px solid var(--black); width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; box-shadow: 0 30px 80px rgba(0,0,0,.12); animation: rise .25s var(--ease); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 26px 30px 0; }
.modal-head h3 { margin: 0; font-family: var(--serif); font-size: 28px; font-weight: 400; }
.modal-body { padding: 24px 30px 8px; }
.modal-foot { display: flex; justify-content: space-between; gap: 8px; padding: 8px 30px 28px; flex-wrap: wrap; }
.modal-foot .right { display: flex; gap: 8px; margin-left: auto; }
@keyframes fade { from { opacity: 0; } }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.login-art { background: var(--black); color: var(--white); padding: 56px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center; position: relative; overflow: hidden; }
.login-art .top, .login-art .bottom { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.55); line-height: 2; }
.login-art .center { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.login-art .mono { width: 150px; }
.login-art .word { width: 230px; }
.login-art .script { position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%) rotate(-4deg); font-size: 72px; color: rgba(255,255,255,.08); white-space: nowrap; pointer-events: none; }
.login-form { display: grid; place-items: center; padding: 40px 24px; background: var(--white); }
.login-box { width: min(360px, 100%); }
.login-box .mono-sm { width: 40px; margin-bottom: 36px; }
.login-box h2 { font-family: var(--serif); font-size: 40px; font-weight: 400; margin: 0 0 8px; }
.divider { display: flex; align-items: center; gap: 14px; color: var(--ink-3); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; margin: 28px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.error { border: 1px solid var(--black); border-left-width: 3px; color: var(--black); padding: 12px 16px; font-size: 13.5px; margin-bottom: 20px; }
.notice { border-left: 2px solid var(--black); background: var(--wash); color: var(--ink); padding: 14px 18px; font-size: 13.5px; margin-bottom: 24px; }
.notice a { color: var(--black); }
#gbtn { min-height: 44px; display: flex; justify-content: center; }
.full { width: 100%; }

.search-box { position: relative; margin: 0 0 6px; }
.search-box input { width: 100%; padding: 8px 4px 8px 24px; border: 0; border-bottom: 1px solid var(--line); background: transparent; font-size: 13px; outline: none; }
.search-box input:focus { border-bottom-color: var(--black); }
.search-box::before { content: ""; position: absolute; left: 4px; top: 13px; width: 9px; height: 9px; border: 1.2px solid var(--ink-3); border-radius: 50%; }
.search-box::after { content: ""; position: absolute; left: 13px; top: 22px; width: 5px; height: 1.2px; background: var(--ink-3); transform: rotate(45deg); }
.search-results { position: absolute; top: 100%; left: 0; right: 0; margin-top: 6px; background: var(--white); border: 1px solid var(--black); z-index: 30; max-height: 360px; overflow-y: auto; }
.search-results a { display: block; padding: 8px 12px; text-decoration: none; font-size: 13.5px; }
.search-results a:hover { background: var(--line-2); }
.search-results .lbl { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); padding: 10px 12px 2px; }

#toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(16px); background: var(--black); color: var(--white); padding: 12px 22px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: 0; pointer-events: none; transition: all .25s var(--ease); z-index: 200; max-width: calc(100% - 32px); }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.invite-link { display: flex; gap: 12px; align-items: flex-end; }
.invite-link input { flex: 1; font-size: 13px; }
.settings-note { color: var(--ink-2); font-size: 13.5px; }
.settings-note li { margin-bottom: 6px; }
.settings-note code { background: var(--line-2); padding: 1px 5px; }

/* ---------- mobil ---------- */
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 80; left: 0; top: 0; width: 280px; transform: translateX(-100%); transition: transform .25s var(--ease); }
  .shell.nav-open .sidebar { transform: none; box-shadow: 0 0 60px rgba(0,0,0,.15); }
  .shell.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(255,255,255,.7); z-index: 70; }
  .topbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--white); position: sticky; top: 0; z-index: 60; }
  .topbar .word { width: 120px; }
  .topbar .mono { width: 26px; }
  .content { padding: 32px 16px 80px; }
  h1.page-title, .title-input { font-size: 34px; }
  .hero .script { display: none; }
  .stats, .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .stat { padding: 20px 10px 20px 0; }
  .stat + .stat { padding-left: 12px; }
  .stat .n { font-size: 24px; }
  .stat .l { font-size: 9px; letter-spacing: .12em; }
  .grid-2 { grid-template-columns: 1fr; gap: 0; }
  .board { grid-template-columns: 1fr; }
  .login { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .table .hide-sm { display: none; }
}

/* ---------- fase 1: billeder, roller, log, designsystem ---------- */
.login-art > * { position: relative; z-index: 1; }
.login-art .login-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; filter: grayscale(1) contrast(1.05); opacity: .55; }
.login-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(1,1,1,.55), rgba(1,1,1,.15) 45%, rgba(1,1,1,.7)); z-index: 0; }
.sys-name { text-align: center; font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-3); margin: -12px 0 18px; }

.today-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: end; padding-bottom: 40px; border-bottom: 1px solid var(--black); position: relative; }
.today-text .page-title { font-size: clamp(36px, 4.2vw, 54px); margin: 10px 0 14px; line-height: 1.02; }
.today-line { font-size: 17px; color: var(--ink-2); max-width: 440px; margin: 0; }
.today-text .script { font-size: 44px; color: var(--ink-4); margin-top: 26px; line-height: 1; }
.today-photos { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 8px; height: 380px; overflow: hidden; }
.today-photos img { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: center 30%; display: block; }
.today-photos .p0 { grid-row: span 2; }
.today-photos.single { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.today-photos.single img { object-position: center 38%; }
.sec-link { margin-left: auto; font-family: var(--sans); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.sec-link:hover { color: var(--black); }
.grid-3.tight .stat { padding-top: 20px; padding-bottom: 20px; }
.stat.ghost .n { color: var(--ink-4); }
.mood-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; text-decoration: none; }
.mood-strip img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; transition: opacity .2s; }
a.mood-strip:hover img { opacity: .85; }

.masonry { columns: 3 240px; column-gap: 10px; }
.m-item { display: block; width: 100%; border: 0; padding: 0; margin: 0 0 10px; background: none; cursor: zoom-in; break-inside: avoid; }
.m-item img { width: 100%; display: block; transition: opacity .2s; }
.m-item:hover img { opacity: .88; }
.lightbox { position: fixed; inset: 0; background: rgba(1,1,1,.94); z-index: 100; display: grid; place-items: center; animation: rise .2s var(--ease); }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.lb-btn { position: absolute; background: none; border: 1px solid rgba(255,255,255,.3); color: #fff; width: 44px; height: 44px; cursor: pointer; font-size: 16px; }
.lb-btn:hover { border-color: #fff; }
.lb-btn.prev { left: 20px; top: 50%; } .lb-btn.next { right: 20px; top: 50%; } .lb-btn.close { right: 20px; top: 20px; }
.lb-dl { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; }

.editor .gallery, .gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 28px; }
.gallery img, .editor img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }

.checks { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 6px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; }
.check input { accent-color: var(--black); width: 16px; height: 16px; }
.role-legend { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--black); border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.role-legend > div { padding: 16px 18px 16px 0; font-size: 12.5px; color: var(--ink-3); }
.role-legend > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.role-legend strong { display: block; color: var(--ink); font-weight: 500; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 6px; }
.pill.off { color: var(--ink-4); border-style: dashed; }
.pill.warn { border-color: var(--black); color: var(--black); border-width: 1px; box-shadow: inset 0 0 0 1px var(--black); }
tr.dim td { color: var(--ink-4); }

.swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.swatch { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.swatch .chip { height: 72px; border: 1px solid var(--line); margin-bottom: 6px; }
.demo-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; padding: 22px; }
.type-demo .script { font-size: 40px; color: var(--ink-4); }

@media (max-width: 860px) {
  .today-hero { grid-template-columns: 1fr; gap: 24px; }
  .today-photos { height: 260px; order: -1; margin: -32px -16px 0; grid-template-columns: 1.4fr 1fr; gap: 4px; }
  .mood-strip { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .masonry { columns: 2; column-gap: 6px; } .m-item { margin-bottom: 6px; }
  .role-legend { grid-template-columns: 1fr 1fr; }
  .role-legend > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .swatches { grid-template-columns: repeat(3, 1fr); }
  .gallery, .editor .gallery { grid-template-columns: repeat(2, 1fr); }
  .login-art { display: flex; min-height: 240px; padding: 28px; }
  .login-art .top, .login-art .bottom, .login-art .script { display: none; }
  .login-art .mono { width: 64px; } .login-art .word { width: 160px; }
  .login-box .mono-sm { display: none; }
}

/* =================== v2: professionel portal =================== */
:root { --cream: #f7f4ee; --sand: #ded8ce; --warn: #6a2135; --pos: #707a57; --side: 264px; }
.shell { grid-template-columns: var(--side) 1fr; }
.sidebar { padding: 22px 14px 14px; background: var(--white); border-right: 1px solid var(--line); }
.brand { flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; padding: 2px 8px 20px; margin-bottom: 14px; border-bottom: 1px solid var(--line); perspective: 400px; }
.brand .mono { width: 34px; }
.brand .sys { font-family: var(--serif); font-size: 19px; line-height: 1.1; color: var(--black); }
.brand .sys-sub { font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin-top: 3px; }
.ws-switch { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--black); margin: 0 4px 12px; }
.ws-switch button { border: 0; background: transparent; height: 32px; cursor: pointer; font-size: 9.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); padding: 0 4px; white-space: nowrap; }
.ws-switch button + button { border-left: 1px solid var(--black); }
.ws-switch button.on { background: var(--black); color: var(--white); }
.ws-one { margin: 0 8px 12px; font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.search-trigger { display: flex; align-items: center; gap: 10px; margin: 0 4px 6px; height: 36px; padding: 0 10px; background: var(--white); border: 1px solid var(--sand); cursor: pointer; color: var(--ink-3); font-size: 13px; text-align: left; transition: border-color .15s; }
.search-trigger:hover { border-color: var(--black); color: var(--black); }
.search-trigger span:not(.ico) { flex: 1; }
.search-trigger .ico { width: 16px; height: 16px; }
kbd { font: 500 10px var(--sans); letter-spacing: .06em; border: 1px solid var(--sand); padding: 1px 5px; color: var(--ink-3); background: var(--cream); }
.nav { display: flex; flex-direction: column; }
.nav-group { padding-top: 4px; }
.nav-label { padding: 16px 8px 6px; font-size: 9.5px; letter-spacing: .22em; }
.nav-item { align-items: center; gap: 11px; padding: 7px 8px; font-size: 13.5px; border-radius: 0; }
.nav-item .ico { width: 17px; height: 17px; display: inline-grid; place-items: center; color: var(--ink-3); font-size: 0; }
.nav-item .ico svg, .ico svg, .i svg { width: 100%; height: 100%; display: block; }
.nav-item:hover { background: rgba(1,1,1,.04); }
.nav-item.active { background: var(--black); color: var(--white); font-weight: 400; }
.nav-item.active .ico { color: var(--white); }
.nav-item.active::before { display: none; }
.sidebar-foot { border-top: 1px solid var(--line); }
.sidebar-foot .nav-item .ico { width: 15px; height: 15px; }
.i { display: inline-block; width: 18px; height: 18px; flex: none; }

.topbar { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 40px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.92); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 60; }
.topbar .menu-btn { display: none; font-size: 22px; }
.crumb { flex: 1; display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--ink-3); letter-spacing: .04em; min-width: 0; white-space: nowrap; overflow: hidden; }
.crumb strong { color: var(--black); font-weight: 500; }
.crumb .sep { color: var(--ink-4); }
.content { padding: 44px 56px 120px; max-width: 1240px; }
h1.page-title { font-size: 40px; }
.head-row { margin-bottom: 28px; }
.head-row .sub { margin-top: 6px; }
.eyebrow { margin-bottom: 10px; }
h2.section { font-size: 21px; margin: 44px 0 16px; }
.sec-link { margin-left: auto; font-family: var(--sans); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); text-decoration: none; }
.sec-link:hover { color: var(--black); }
.pill.warn { background: var(--warn); border-color: var(--warn); color: #fff; }
.neg { color: var(--warn) !important; }
.num { font-variant-numeric: tabular-nums; }
.input.compact { width: auto; min-width: 150px; padding: 8px 20px 8px 0; font-size: 13px; }
.toolbar-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 0 0 22px; }
.filters { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.list-item.static { cursor: default; }
.list-item.static:hover { padding-left: 0; }

/* KPI'er */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--black); margin-bottom: 28px; }
.kpis.two { grid-template-columns: 1fr 1fr; margin: 0; }
.kpi { padding: 20px 22px; min-width: 0; }
.kpi + .kpi { border-left: 1px solid var(--line); }
.kpi-l { font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.kpi-n { font-family: var(--serif); font-size: 30px; line-height: 1.15; margin-top: 8px; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-s { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.kpi.neg .kpi-n, .kpi.warn .kpi-n { color: var(--warn); }
.kpi.pos .kpi-n { color: var(--pos); }
.small-kpis .kpi { padding: 14px 18px; } .small-kpis .kpi-n { font-size: 24px; }

/* fliser */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0; border-top: 1px solid var(--black); border-left: 1px solid var(--line); }
.tile { display: flex; flex-direction: column; gap: 8px; padding: 22px; min-height: 180px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; transition: background .2s; }
.tile:hover { background: var(--cream); }
.tile-top { display: flex; justify-content: space-between; align-items: center; }
.tile-num { font-size: 10.5px; letter-spacing: .14em; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.tile-icon { font-size: 26px; filter: grayscale(1); margin-top: auto; }
.tile-icon .i { width: 28px; height: 28px; }
.tile-title { font-family: var(--serif); font-size: 19px; line-height: 1.25; }
.tree-card { padding: 16px 18px; }

/* kalender */
.cal-nav { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cal-nav h2 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin: 0 8px; min-width: 190px; text-align: center; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--black); border-left: 1px solid var(--line); }
.cal-dow { font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); padding: 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cal-day { min-height: 112px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-day.out { background: var(--wash); color: var(--ink-4); }
.cal-day.today .cal-date { background: var(--black); color: var(--white); }
.cal-date { display: flex; justify-content: space-between; align-items: center; font-size: 12px; padding: 1px 5px; align-self: stretch; }
.cal-add { border: 0; background: none; cursor: pointer; color: var(--ink-4); opacity: 0; font-size: 15px; line-height: 1; padding: 0 2px; }
.cal-day:hover .cal-add, .year-month:hover .cal-add { opacity: 1; }
.cal-day.today .cal-add { color: var(--white); }
.cal-chip { display: block; width: 100%; text-align: left; border: 0; border-left: 2px solid var(--black); background: var(--cream); padding: 2px 6px; font-size: 11.5px; line-height: 1.35; cursor: pointer; text-decoration: none; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-chip:hover { background: var(--sand); }
.k-aarshjul { border-left-color: var(--pos) !important; } .k-kampagne { border-left-color: var(--warn) !important; } .k-kursus { border-left-color: #3d1700 !important; }
.k-moede { border-left-color: var(--ink-3) !important; } .k-tryon { border-left-color: #c9b458 !important; } .k-deadline { border-left-style: dashed !important; background: var(--white) !important; border: 1px dashed var(--ink-4) !important; }
.cal-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; font-size: 12px; color: var(--ink-3); }
.cal-legend i { display: inline-block; width: 10px; height: 10px; border-left: 3px solid var(--black); background: var(--cream); margin-right: 6px; vertical-align: -1px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; } .chips .cal-chip { width: auto; max-width: 100%; }
.year-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--black); border-left: 1px solid var(--line); }
.year-month { min-height: 170px; padding: 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.year-month.now { background: var(--cream); }
.ym-head { display: flex; gap: 10px; align-items: baseline; margin-bottom: 6px; } .ym-head strong { font-family: var(--serif); font-weight: 400; font-size: 18px; flex: 1; }
.ym-item { text-align: left; border: 0; border-left: 2px solid var(--black); background: none; padding: 2px 8px; font-size: 12.5px; cursor: pointer; }
.ym-item:hover { background: var(--white); }

/* timer */
.time-form { padding: 20px 24px 4px; }
.time-row { display: grid; grid-template-columns: 160px 120px 1fr auto; gap: 20px; align-items: end; }
.time-row .btn { margin-bottom: 20px; }
.filters-card { padding: 18px 24px 0; margin-bottom: 24px; } .filters-card .seg { margin-bottom: 14px; }
.bar { height: 6px; background: var(--line-2); position: relative; } .bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--black); }

/* opgaver v2 */
.avatars { display: inline-flex; margin-left: auto; } .avatars .avatar + .avatar { margin-left: -6px; box-shadow: 0 0 0 2px var(--white); }
.chip-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--white); padding: 3px 10px 3px 3px; cursor: pointer; font-size: 12.5px; }
.chip.on { border-color: var(--black); background: var(--black); color: var(--white); }
.chip:disabled { cursor: default; opacity: .7; }
.checklist { display: flex; flex-direction: column; gap: 2px; }
.cl-item { display: flex; align-items: center; gap: 10px; padding: 4px 0; border-bottom: 1px solid var(--line-2); }
.cl-item span { flex: 1; } .cl-item.done span { text-decoration: line-through; color: var(--ink-3); }
.cl-item .icon-btn { opacity: 0; } .cl-item:hover .icon-btn { opacity: 1; }
.comments { display: flex; flex-direction: column; gap: 12px; }
.comment { display: flex; gap: 10px; } .c-body { white-space: pre-wrap; font-size: 13.5px; }
.c-new { display: flex; gap: 10px; align-items: flex-end; } .c-new textarea { min-height: 54px; }
.tasks-table tr { cursor: pointer; } .tasks-table tr:hover td { background: var(--cream); }
.tasks-table .meta { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.people-load { border-top: 1px solid var(--black); }
.pl-row { display: grid; grid-template-columns: 240px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.pl-who { display: flex; gap: 10px; align-items: center; }
.pl-tasks { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pl-task { border: 1px solid var(--line); background: var(--white); padding: 4px 10px; font-size: 12.5px; cursor: pointer; } .pl-task:hover { border-color: var(--black); }
.pl-task.late { border-color: var(--warn); }
.avatar.ghost { background: var(--line); color: var(--ink-3); }

/* dokumenter */
.doc-link { display: flex; gap: 10px; align-items: flex-start; text-decoration: none; } .doc-link:hover span { text-decoration: underline; }

/* brand */
.brand-hero { position: relative; height: 300px; overflow: hidden; margin-bottom: 8px; background: var(--black); }
.brand-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; opacity: .7; }
.brand-hero-txt { position: absolute; left: 36px; bottom: 28px; color: var(--white); }
.brand-hero-txt .eyebrow { color: rgba(255,255,255,.75); } .brand-hero-txt .page-title { color: var(--white); margin: 0; font-size: 52px; }
.brand-hero-txt .script { font-size: 30px; margin: 4px 0 0; }
.color-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.color-card { border: 1px solid var(--line); background: var(--white); padding: 0; text-align: left; cursor: pointer; transition: border-color .15s; }
.color-card:hover { border-color: var(--black); }
.color-chip { height: 120px; display: flex; align-items: flex-end; padding: 12px; font-size: 11px; letter-spacing: .12em; border-bottom: 1px solid var(--line); }
.color-meta { padding: 10px 12px; display: flex; flex-direction: column; }
.color-edit { display: grid; grid-template-columns: 44px 1fr 140px 100px 30px; gap: 10px; align-items: center; margin-bottom: 6px; }
.color-edit input[type=color] { width: 40px; height: 32px; border: 1px solid var(--line); padding: 0; background: none; }
.input.mono { font-family: ui-monospace, monospace; font-size: 12.5px; }
.font-list { border-top: 1px solid var(--black); }
.font-row { display: grid; grid-template-columns: 300px 1fr; gap: 32px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: center; }
.font-info strong { font-family: var(--serif); font-weight: 400; font-size: 22px; display: block; margin: 4px 0 2px; }
.font-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.font-sample { line-height: 1.2; overflow-wrap: anywhere; }
.logo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.logo-card { border: 1px solid var(--line); }
.logo-card.dark .logo-stage { background: var(--black); }
.logo-stage { height: 150px; display: grid; place-items: center; padding: 24px; background: var(--cream); }
.logo-stage img { max-width: 80%; max-height: 70px; }
.logo-meta { display: flex; justify-content: space-between; align-items: center; padding: 8px 4px 8px 12px; font-size: 12.5px; }
.demo-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; padding: 20px; }

/* økonomi */
.fin-legend { display: flex; gap: 18px; font-size: 12px; color: var(--ink-3); margin-bottom: 14px; }
.fin-legend i { display: inline-block; width: 18px; height: 6px; margin-right: 6px; vertical-align: 2px; }
.fin-legend i.now, .bar.now i { background: var(--black); } .fin-legend i.prev, .bar.prev i { background: var(--sand); }
.fin-row { display: grid; grid-template-columns: 190px 1fr 170px; gap: 20px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.fin-row.total { border-top: 1px solid var(--black); border-bottom: 0; margin-top: 6px; }
.fin-bars { display: flex; flex-direction: column; gap: 4px; } .fin-bars .bar { height: 8px; background: none; }
.fin-val { display: flex; justify-content: space-between; gap: 10px; font-variant-numeric: tabular-nums; }
.grid-2b { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; }
tr.overdue td { background: rgba(106,33,53,.05); }

/* søgning (⌘K) */
.palette-ov { place-items: start center; padding-top: 12vh; }
.palette { width: min(640px, 92vw); background: var(--white); border: 1px solid var(--black); box-shadow: 0 30px 80px rgba(0,0,0,.18); }
.palette-head { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.palette-head .ico { width: 18px; height: 18px; color: var(--ink-3); }
.palette-input { flex: 1; border: 0; outline: none; height: 56px; font-size: 16px; background: none; }
.palette-list { max-height: 52vh; overflow-y: auto; padding: 6px 0; }
.p-group { font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); padding: 10px 18px 4px; }
.p-item { display: flex; align-items: center; gap: 12px; padding: 9px 18px; text-decoration: none; font-size: 14px; }
.p-item .ico { width: 16px; height: 16px; color: var(--ink-3); flex: none; }
.p-item.sel { background: var(--black); color: var(--white); } .p-item.sel .ico, .p-item.sel .muted { color: rgba(255,255,255,.7); }
.p-item .grow { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-empty { padding: 24px 18px; color: var(--ink-3); text-align: center; }
.palette-foot { display: flex; gap: 18px; padding: 8px 18px; border-top: 1px solid var(--line); font-size: 11px; color: var(--ink-3); }

/* Lime Studio-arbejdsrum: samme system, lys grøn accent i menuen */


@media (max-width: 1100px) {
  .kpis { grid-template-columns: 1fr 1fr; } .kpi:nth-child(3) { border-left: 0; } .kpi:nth-child(n+3) { border-top: 1px solid var(--line); }
  .color-grid, .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .year-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-2b { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .topbar { height: 52px; padding: 0 12px; justify-content: flex-start; }
  .topbar .menu-btn { display: block; }
  .content { padding: 28px 16px 80px; }
  .sidebar { width: 280px; }
  .time-row { grid-template-columns: 1fr 1fr; } .time-row .grow-field { grid-column: 1 / -1; } .time-row .btn { grid-column: 1 / -1; }
  .cal-day { min-height: 64px; padding: 3px; } .cal-chip { font-size: 0; height: 6px; padding: 0; border-left-width: 0; background: var(--black); }
  .cal-chip.k-deadline { background: var(--white) !important; } .cal-nav h2 { min-width: 0; font-size: 19px; }
  .year-grid { grid-template-columns: 1fr 1fr; } .year-month { min-height: 120px; padding: 10px; }
  .font-row { grid-template-columns: 1fr; gap: 12px; }
  .fin-row { grid-template-columns: 1fr 110px; } .fin-bars { grid-column: 1 / -1; grid-row: 2; }
  .pl-row { grid-template-columns: 1fr; gap: 10px; }
  .brand-hero { height: 220px; } .brand-hero-txt { left: 18px; bottom: 16px; } .brand-hero-txt .page-title { font-size: 36px; }
  .color-edit { grid-template-columns: 40px 1fr 30px; } .color-edit select, .color-edit .mono { display: none; }
  .kpi-n { font-size: 22px; } .kpi { padding: 14px; }
}

/* ikonisk monogram: drejer som en mønt */
@keyframes hos-flip { from { transform: rotateY(0); } to { transform: rotateY(360deg); } }
.brand .mono, .login-art .mono, .boot img { transform-style: preserve-3d; backface-visibility: visible; }
.brand:hover .mono { animation: hos-flip 1.1s var(--ease); }
.brand .mono.spin, .login-art .mono.spin { animation: hos-flip .9s var(--ease); }
.boot img { animation: hos-flip 1.6s var(--ease) infinite, breathe 1.6s ease-in-out infinite; }
.page-loading .brand .mono { animation: hos-flip 1s linear infinite; }
.search-trigger { border-color: var(--line); } kbd { border-color: var(--line); background: var(--white); }
.nav-item:hover { background: var(--wash); }
@media (prefers-reduced-motion: reduce) { .brand .mono, .boot img, .login-art .mono { animation: none !important; } }

.wish-row { grid-template-columns: 1fr 1fr auto; }
.list-item.wish { align-items: flex-start; } .list-item.wish input { margin-top: 5px; }
.list-item.wish .title { white-space: normal; } .wish-note { white-space: pre-wrap; }
.list-item.wish.done .title { text-decoration: line-through; color: var(--ink-3); }
.wish-form { margin-bottom: 20px; }
@media (max-width: 900px) { .wish-row { grid-template-columns: 1fr; } }

/* ---------- v3: årshjul, events, Instagram ---------- */
:root { --lane-event: var(--black); --lane-klaviyo: #3e4a57; --lane-tryon: #c9b458; --lane-tema: var(--pos); }
.k-klaviyo { border-left-color: var(--lane-klaviyo) !important; background: #eef0f2 !important; }
.next-events { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0; border: 1px solid var(--black); margin-bottom: 30px; }
.next-ev { display: flex; gap: 18px; text-align: left; background: var(--white); border: 0; border-right: 1px solid var(--line); padding: 20px 22px; cursor: pointer; transition: background .15s; min-width: 0; }
.next-ev:last-child { border-right: 0; } .next-ev:hover { background: var(--cream); }
.ne-count { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 64px; border-right: 1px solid var(--line); padding-right: 16px; }
.ne-count strong { font-family: var(--serif); font-size: 40px; font-weight: 400; line-height: 1; } .ne-count span { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-top: 6px; }
.ne-body { min-width: 0; flex: 1; } .ne-body .eyebrow { margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ne-title { font-family: var(--serif); font-size: 19px; line-height: 1.25; margin-bottom: 10px; }
.ne-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--ink-3); margin-bottom: 8px; }
.bar.sm { height: 3px; width: 70px; display: inline-block; margin-left: 8px; vertical-align: middle; }
.st-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .06em; padding: 2px 9px 2px 7px; border: 1px solid var(--line); background: var(--white); color: var(--ink-2); white-space: nowrap; cursor: default; }
.st-pill i { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--ink-3); }
.st-igang i { background: #c9b458; border-color: #c9b458; } .st-faerdig i { background: var(--black); border-color: var(--black); }
.st-choose { display: flex; gap: 6px; flex-wrap: wrap; } .st-choose .st-pill { cursor: pointer; opacity: .55; } .st-choose .st-pill.sel { opacity: 1; border-color: var(--black); }
.st-choose .st-pill:disabled { cursor: default; }
.lane-toggles { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.lane-tg { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--white); padding: 4px 10px; font-size: 12px; cursor: pointer; color: var(--ink-3); }
.lane-tg i, .yl-lane i { width: 10px; height: 10px; display: inline-block; background: var(--ink-4); }
.lane-tg.on { color: var(--ink); border-color: var(--ink-4); }
.lt-event.on i, .yl-lane.lt-event i { background: var(--lane-event); } .lt-klaviyo.on i, .yl-lane.lt-klaviyo i { background: var(--lane-klaviyo); }
.lt-tryon.on i, .yl-lane.lt-tryon i { background: var(--lane-tryon); } .lt-tema.on i, .yl-lane.lt-tema i { background: var(--lane-tema); }
.yl { display: grid; grid-template-columns: 124px repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--black); margin-bottom: 28px; }
.yl-corner { display: flex; align-items: center; } .yl-corner .eyebrow { margin: 0; }
.yl-more { padding: 2px 6px; font-size: 11.5px; text-align: left; }
.yl-corner, .yl-month { border-bottom: 1px solid var(--black); }
.yl-month { display: flex; align-items: center; gap: 8px; padding: 12px 10px; font-family: var(--serif); font-size: 15px; border-left: 1px solid var(--line); position: relative; }
.yl-month .tile-num { font-family: var(--sans); font-size: 10px; color: var(--ink-4); letter-spacing: .1em; }
.yl-month .cal-add { margin-left: auto; } .yl-month:hover .cal-add { opacity: 1; }
.yl-month.now { background: var(--black); color: var(--white); } .yl-month.now .tile-num, .yl-month.now .cal-add { color: var(--ink-4); }
.yl-lane { display: flex; align-items: flex-start; gap: 8px; padding: 12px 10px 12px 0; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); border-bottom: 1px solid var(--line); position: sticky; left: 0; background: var(--white); z-index: 1; }
.yl-lane i { margin-top: 3px; flex: none; }
.yl-cell { border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 8px 6px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.yl-cell.now { background: var(--wash); }
.yl-item { display: flex; gap: 6px; align-items: baseline; text-align: left; border: 0; border-left: 2px solid var(--black); background: var(--cream); padding: 4px 6px; font-size: 12px; line-height: 1.3; cursor: pointer; min-width: 0; color: var(--ink); transition: background .15s; }
.yl-item:hover { background: var(--sand); }
.yl-item .yl-d { font-size: 10.5px; color: var(--ink-3); flex: none; font-variant-numeric: tabular-nums; }
.yl-item .yl-t { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.yl-item.ev.st-faerdig { opacity: .55; } .yl-item.ev.st-igang { border-left-color: #c9b458; }
.yl-item.cam { border-left-color: var(--lane-klaviyo); background: #eef0f2; cursor: default; }
.yl-item.cam.draft { background: var(--white); border: 1px dashed var(--ink-4); border-left: 2px dashed var(--lane-klaviyo); }
.yl-item.cam.sched { background: #dfe4e9; }
.yl-item.tema { border-left-color: var(--lane-tema); background: #f0f1ec; }
.yl-count { font-size: 12px; color: var(--ink-2); text-decoration: none; border-left: 2px solid var(--lane-tryon); padding: 3px 6px; background: #faf7ea; }
.ev-table { padding: 0; overflow-x: auto; }
.evt-row { display: grid; grid-template-columns: minmax(220px, 2.2fr) 130px 120px 120px minmax(120px, 1fr) 110px 100px; gap: 14px; align-items: center; padding: 11px 18px; border-bottom: 1px solid var(--line-2); text-decoration: none; color: var(--ink); font-size: 13.5px; min-width: 980px; }
a.evt-row:hover { background: var(--cream); }
.evt-head { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--black); }
.evt-group { padding: 18px 18px 6px; font-family: var(--serif); font-size: 16px; border-bottom: 1px solid var(--line); min-width: 980px; }
.evt-name { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.kind-dot { width: 3px; height: 18px; background: var(--black); flex: none; } .kind-dot.k-kursus { background: #3d1700; } .kind-dot.k-moede { background: var(--ink-3); } .kind-dot.k-kampagne { background: var(--warn); }
/* eventside */
.ev-page { max-width: 1180px; }
.ev-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.ev-top .back { font-size: 12.5px; color: var(--ink-3); text-decoration: none; } .ev-top .back:hover { color: var(--ink); }
.ev-top .right { display: flex; gap: 14px; align-items: center; }
.ev-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; align-items: start; }
.ev-title { width: 100%; border: 0; outline: none; resize: none; overflow: hidden; font-family: var(--serif); font-size: 44px; line-height: 1.12; padding: 0; background: none; margin: 0 0 20px; }
.ev-title:disabled { color: var(--ink); }
.ev-props { border-top: 1px solid var(--black); margin-bottom: 34px; }
.ev-prop { display: grid; grid-template-columns: 170px minmax(0, 1fr); align-items: center; border-bottom: 1px solid var(--line-2); min-height: 44px; }
.ev-prop-l { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 13px; } .ev-prop-l .ico svg { width: 15px; height: 15px; }
.ev-prop-v .inline { display: flex; align-items: center; gap: 10px; } .ev-prop-v .inline .input { width: auto; }
.input.bare { border-bottom-color: transparent; padding: 7px 0; } .input.bare:hover { border-bottom-color: var(--line); } .input.bare:focus { border-bottom-color: var(--black); }
.input.bare:disabled { color: var(--ink); } select.input.bare { width: auto; padding-right: 22px; }
.ev-prop-v select.input { width: auto; min-width: 180px; }
.ev-h { font-family: var(--serif); font-weight: 400; font-size: 22px; margin: 34px 0 12px; }
.ev-purpose { min-height: 70px; font-family: var(--serif); font-size: 17px; line-height: 1.5; border-color: var(--line); background: var(--cream); }
.ev-card { padding: 6px 18px 12px; }
.ev-table-h, .ev-trow { display: grid; grid-template-columns: 26px minmax(0, 1fr) 130px 28px; gap: 10px; align-items: center; }
.ev-table-h { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); padding: 10px 0 8px; border-bottom: 1px solid var(--line); }
.ev-trow { border-bottom: 1px solid var(--line-2); } .ev-trow.done input.bare:not(.num) { text-decoration: line-through; color: var(--ink-3); }
.ev-trow input[type=checkbox] { width: 15px; height: 15px; accent-color: var(--black); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.ev-trow .icon-btn, .guest-row .icon-btn { opacity: 0; } .ev-trow:hover .icon-btn, .guest-row:hover .icon-btn { opacity: 1; }
.ev-tfoot { display: flex; justify-content: space-between; padding: 12px 38px 2px 36px; font-size: 13px; color: var(--ink-3); } .ev-tfoot strong { color: var(--ink); font-weight: 500; }
.add-row { border: 0; background: none; color: var(--ink-3); cursor: pointer; padding: 10px 0; font-size: 13px; } .add-row:hover { color: var(--ink); }
.row-actions { display: flex; gap: 22px; }
.guest-stats { display: flex; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); align-items: baseline; }
.guest-stats strong { font-family: var(--serif); font-size: 20px; font-weight: 400; color: var(--ink); }
.guest-row { display: grid; grid-template-columns: minmax(0, 1.3fr) 120px minmax(0, 1fr) 28px; gap: 10px; align-items: center; border-bottom: 1px solid var(--line-2); }
.gsel.gs-bekraeftet { font-weight: 500; } .gsel.gs-afbud { color: var(--ink-3); text-decoration: line-through; }
.ev-side { position: sticky; top: 24px; border: 1px solid var(--black); }
.ev-count { padding: 26px 24px; border-bottom: 1px solid var(--black); background: var(--black); color: var(--white); }
.ev-count .eyebrow { color: var(--ink-4); } .ev-count strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 64px; line-height: 1; margin: 6px 0; } .ev-count span { font-size: 12px; color: var(--ink-4); }
.ev-mini { padding: 10px 24px 18px; } .ev-mini > div:not(.bar) { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; color: var(--ink-3); }
.ev-mini strong { color: var(--ink); font-weight: 500; } .ev-mini .bar { margin: 2px 0 6px; height: 3px; }
.save-state { min-width: 70px; text-align: right; }
/* Instagram */
.ig-layout { display: grid; grid-template-columns: 430px minmax(0, 1fr); gap: 44px; align-items: start; }
.phone { border: 1px solid var(--black); padding: 22px 0 10px; position: sticky; top: 24px; background: var(--white); }
.ig-head { display: flex; align-items: center; gap: 28px; padding: 0 20px 10px; }
.ig-avatar { width: 78px; height: 78px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; flex: none; } .ig-avatar img { width: 46px; }
.ig-nums { display: flex; gap: 26px; font-size: 12.5px; color: var(--ink-3); } .ig-nums strong { display: block; font-size: 17px; color: var(--ink); font-weight: 600; }
.ig-user { padding: 0 20px 14px; font-weight: 600; font-size: 13.5px; }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.ig-tile { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--line-2); border: 0; padding: 0; cursor: pointer; }
.ig-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); } .ig-tile:hover img { transform: scale(1.03); }
.ig-tile img.broken { opacity: 0; }
.ig-tile.plan { outline: 2px solid var(--black); outline-offset: -2px; cursor: grab; } .ig-tile.plan.ready { outline-color: var(--pos); }
.ig-badge { position: absolute; left: 6px; top: 6px; background: var(--black); color: var(--white); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; padding: 2px 6px; }
.ig-tile.ready .ig-badge { background: var(--pos); }
.ig-type { position: absolute; right: 7px; top: 5px; color: var(--white); font-size: 13px; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.btn.block { display: block; margin: 10px auto 0; }
.ig-detail { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 22px; } .ig-detail img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.ig-stats { display: flex; gap: 16px; align-items: center; font-size: 13px; color: var(--ink-3); margin-bottom: 10px; } .ig-stats strong { color: var(--ink); }
.ig-caption { white-space: pre-wrap; font-size: 13.5px; max-height: 300px; overflow: auto; }
.ig-layout .kpis { grid-template-columns: repeat(3, 1fr); }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; } .card-head h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 22px; }
.card.pad { padding: 26px; }
.plan-list { margin-top: 14px; border-top: 1px solid var(--line); }
.plan-item { display: flex; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.plan-item img { width: 54px; height: 72px; object-fit: cover; flex: none; } .plan-item .grow { flex: 1; min-width: 0; }
.plan-arrows { display: flex; flex-direction: column; }
@media (max-width: 1100px) { .ig-layout { grid-template-columns: 1fr; } .phone { position: static; max-width: 460px; } .ev-grid { grid-template-columns: 1fr; } .ev-side { position: static; } }
@media (max-width: 900px) {
  .yl { grid-template-columns: 1fr; } .yl-month, .yl-corner { display: none; } .yl-lane { position: static; padding: 10px 0; border-bottom: 1px solid var(--black); }
  .yl-cell { border-left: 0; } .yl-cell.empty-cell { display: none; } .yl-cell::before { content: attr(data-m); font-family: var(--serif); font-size: 14px; margin-bottom: 2px; }
  .next-events { grid-template-columns: 1fr; } .next-ev { border-right: 0; border-bottom: 1px solid var(--line); }
  .lane-toggles { margin-left: 0; width: 100%; }
  .ev-title { font-size: 32px; } .ev-prop { grid-template-columns: 120px minmax(0, 1fr); } .ev-prop-v .inline { flex-wrap: wrap; gap: 0 10px; }
  .guest-row { grid-template-columns: minmax(0, 1fr) 100px 28px; } .guest-row > input:nth-child(3) { display: none; }
  .ig-detail { grid-template-columns: 1fr; } .ig-layout .kpis { grid-template-columns: 1fr 1fr 1fr; }
}
/* Instagram-profilhoved */
.ig-head { align-items: flex-start; gap: 22px; padding: 0 20px 6px; }
.ig-avatar { width: 92px; height: 92px; background: #f1ede4; border: 0; flex-direction: column; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ig-avatar img { width: 48px; } .ig-avatar span { font-size: 6.5px; font-weight: 700; letter-spacing: .02em; margin-top: 3px; }
.ig-avatar.photo img { width: 100%; height: 100%; object-fit: cover; }
.ig-info { min-width: 0; padding-top: 4px; }
.ig-uname { display: flex; align-items: center; gap: 6px; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.ig-verified svg { width: 17px; height: 17px; display: block; }
.ig-name { font-size: 13px; margin: 2px 0 8px; }
.ig-nums { gap: 16px; font-size: 13px; color: var(--ink); flex-wrap: wrap; } .ig-nums strong { display: inline; font-size: 13px; }
.ig-bio { padding: 4px 20px 0; font-size: 13px; line-height: 1.45; }
.ig-cat { color: var(--ink-3); } .ig-bio-txt { white-space: pre-line; }
.ig-link { color: #3a46c4; text-decoration: none; font-weight: 500; } .ig-link:hover { text-decoration: underline; }
.ig-hl { display: flex; gap: 14px; overflow-x: auto; padding: 18px 20px 14px; scrollbar-width: none; }
.ig-hl-item { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: none; padding: 0; cursor: pointer; flex: none; width: 66px; }
.ig-hl-ring { width: 62px; height: 62px; border-radius: 50%; border: 1px solid var(--line); padding: 3px; display: grid; place-items: center; background: var(--white); }
.ig-hl-ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.ig-hl-ring.add { font-size: 26px; font-weight: 200; color: var(--ink-3); border-style: dashed; }
.ig-hl-ring.big { width: 96px; height: 96px; }
.ig-hl-t { font-size: 10.5px; font-weight: 600; max-width: 66px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: uppercase; }
.ig-hl-edit { display: flex; gap: 20px; align-items: center; } .ig-hl-edit .field { flex: 1; }
.ig-tabs { display: flex; border-top: 1px solid var(--line); } .ig-tabs span { flex: 1; display: grid; place-items: center; padding: 10px 0; color: var(--ink-4); }
.ig-tabs span.on { color: var(--ink); box-shadow: inset 0 -1px 0 var(--ink); } .ig-tabs svg { width: 20px; height: 20px; }
.check-line { display: flex; gap: 8px; align-items: center; font-size: 13.5px; margin: 6px 0 18px; }
.posted-box { margin-top: 8px; } .plan-item.posted img { opacity: .6; }

/* ---------- Ordrer ---------- */
.o-bar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin: 18px 0 14px; }
.o-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.o-tools .input { width: auto; min-width: 150px; }
.o-tools input[type=search] { min-width: 240px; }
.o-tbl td { vertical-align: middle; }
.o-tbl tr.click { cursor: pointer; }
.o-tbl tr.click:hover td { background: rgba(127,127,127,.06); }
.o-no { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; white-space: nowrap; }
.o-src { margin-left: 6px; font-family: inherit; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; padding: 1px 5px; border: 1px solid currentColor; opacity: .55; }
.o-type { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border: 1px solid; opacity: .85; white-space: nowrap; }
.o-method { font-size: 12px; white-space: nowrap; }
.o-method.pick::before { content: "◎ "; }
.o-method.ship::before { content: "→ "; }
.o-today { font-weight: 600; }
.o-pill, .o-status { font-size: 12px; padding: 3px 8px; border-radius: 3px; border: 0; white-space: nowrap; font-family: inherit; }
.o-status { cursor: pointer; max-width: 210px; appearance: auto; }
.o-pink { background: #f6dde8; color: #7a2952; } .o-yellow { background: #f7ecc4; color: #6b5100; } .o-green { background: #dcefdf; color: #1f5a2c; }
.o-red { background: #f8d9d6; color: #8a1f17; } .o-orange { background: #f9e2cc; color: #7a3d06; } .o-blue { background: #d9e6f5; color: #1b4677; }
.o-purple { background: #e6dcf3; color: #4b2a78; } .o-brown { background: #eadfd6; color: #5c3d26; } .o-gray { background: #e9e9e7; color: #44443f; }
.o-file { font-size: 12px; padding: 3px 8px; margin-right: 4px; border: 1px solid; background: transparent; color: inherit; cursor: pointer; }
.o-file:hover { color: var(--white); background: var(--ink); border-color: var(--ink); }
.o-detail { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; margin-top: 18px; }
.o-props { display: grid; grid-template-columns: 1fr; }
.o-prop { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(127,127,127,.18); align-items: center; }
.o-pl { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; opacity: .6; }
.o-pv .input { max-width: 220px; }
.o-h { margin: 22px 0 10px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.o-h:first-child { margin-top: 0; }
.o-filerow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(127,127,127,.18); flex-wrap: wrap; }
.o-fileact { display: flex; gap: 6px; align-items: center; }
.o-files { margin-bottom: 12px; }
.o-tracks { display: flex; flex-direction: column; gap: 8px; }
.o-track { text-decoration: underline; text-underline-offset: 3px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-grid .span2 { grid-column: 1 / -1; }
.danger-text { color: #b3261e; }
@media (max-width: 860px) {
  .o-detail { grid-template-columns: 1fr; }
  .o-prop { grid-template-columns: 120px 1fr; }
  .o-tools, .o-tools .input, .o-tools input[type=search] { width: 100%; min-width: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .o-bar .seg { overflow-x: auto; max-width: 100%; }
}
.o-tbl { font-size: 14px; }
.o-tbl th, .o-tbl td { padding-left: 8px; padding-right: 8px; }
.o-date { white-space: nowrap; }
.o-pv { min-width: 0; }
.o-pv .o-status { max-width: 100%; }
.o-fileact { flex-wrap: wrap; }

/* ---------- Ordreoverblik (Notion-look) ---------- */
.n-tabs { display: flex; gap: 2px; overflow-x: auto; border-bottom: 1px solid var(--line); margin: 8px 0 0; padding-bottom: 6px; scrollbar-width: thin; }
.n-tab { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 0; background: transparent; color: var(--ink-3, #555); font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap; border-radius: 6px; }
.n-tab:hover { background: var(--line-2); color: var(--ink); }
.n-tab.on { background: var(--line-2); color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--ink); border-radius: 6px 6px 0 0; }
.n-ico { font-size: 12px; opacity: .7; min-width: 14px; text-align: center; }
.n-count { font-size: 11px; color: var(--ink-3, #777); background: rgba(0,0,0,.05); padding: 1px 6px; border-radius: 9px; font-weight: 400; }
.n-summary { font-size: 14px; color: var(--ink-3, #555); }
.n-wrap { border: 1px solid var(--line); }
.n-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.n-table th { text-align: left; font-weight: 500; font-size: 12px; color: #787774; padding: 9px 10px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line-2); white-space: nowrap; background: var(--white); position: sticky; top: 0; z-index: 1; }
.n-table td { padding: 7px 10px; border-bottom: 1px solid var(--line-2); border-right: 1px solid var(--line-2); vertical-align: middle; }
.n-table tr.click { cursor: pointer; }
.n-table tr.click:hover td { background: #f7f7f5; }
.n-table tr.today td:first-child { box-shadow: inset 3px 0 0 var(--ink); font-weight: 600; }
.n-date { white-space: nowrap; }
.n-no { white-space: nowrap; font-variant-numeric: tabular-nums; }
.n-item { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #555; }
.n-name { min-width: 140px; }
.n-files { white-space: nowrap; }
.n-pay { text-align: center; }
.n-check { width: 16px; height: 16px; accent-color: #2383e2; cursor: pointer; }
.o-trk { font-size: 12px; margin-left: 4px; text-decoration: underline; text-underline-offset: 2px; }
.o-tags { display: flex; gap: 6px; margin-bottom: 8px; }
.n-tag { display: inline-block; font-size: 12px; line-height: 1.2; padding: 3px 7px; border-radius: 4px; white-space: nowrap; font-weight: 500; }
.n-status { font: inherit; font-size: 12px; font-weight: 500; padding: 3px 6px; border: 0; border-radius: 10px; cursor: pointer; max-width: 230px; }
.n-default { background: #f1f1ef; color: #37352f; } .n-gray { background: #e3e2e0; color: #32302c; } .n-brown { background: #eee0da; color: #442a1e; }
.n-orange { background: #fadec9; color: #49290e; } .n-yellow { background: #fdecc8; color: #402c1b; } .n-green { background: #dbeddb; color: #1c3829; }
.n-blue { background: #d3e5ef; color: #183347; } .n-purple { background: #e8deee; color: #412454; } .n-pink { background: #f5e0e9; color: #4c2337; } .n-red { background: #ffe2dd; color: #5d1715; }
.viewas-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: #fdecc8; color: #402c1b; padding: 10px 24px; font-size: 14px; border-bottom: 1px solid #f0d9a8; position: sticky; top: 0; z-index: 20; }
@media (max-width: 860px) { .viewas-bar { padding: 10px 16px; } }
.n-table td, .n-table th { padding-left: 8px; padding-right: 8px; }
.n-status { max-width: 150px; }
.n-item { max-width: 110px; }
.n-name { min-width: 110px; }
.n-table { font-size: 13.5px; }
.n-notecell { min-width: 190px; background: #fffdf5; }
.n-note { width: 100%; min-height: 30px; border: 1px dashed #e0dccd; background: transparent; font: inherit; font-size: 13px; padding: 5px 7px; resize: none; color: var(--ink); border-radius: 4px; overflow: hidden; display: block; }
.n-note:hover { border-color: #c9c3ad; background: #fff; }
.n-note:focus { outline: none; border: 1px solid var(--ink); background: #fff; }
.n-note::placeholder { color: #a8a294; }
.n-typesel { border-radius: 4px; max-width: 150px; }
.n-typesel { width: auto; }
.viewas-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.viewas-opt { display: flex; justify-content: space-between; gap: 12px; align-items: center; text-align: left; padding: 12px 14px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font: inherit; cursor: pointer; }
.viewas-opt:hover { border-color: var(--ink); }
.viewas-opt span { font-size: 13px; color: #777; }
.o-trk { display: inline-block; margin: 2px 6px 2px 0; }
.o-legbox { border: 1px solid var(--line, #e6e6e6); padding: 12px 14px 4px; }
.o-leg { margin: 0 0 8px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.o-legcard + .o-legcard { margin-top: 16px; }
.o-legline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.n-check:disabled { opacity: .45; cursor: not-allowed; }

/* Google Drive (live) */
.drv-crumbs { margin: 0 0 14px; font-size: 14px; }
.drv-crumbs a { color: inherit; }
.drv-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.drv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.drv-item { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; min-width: 0; }
.drv-thumb { aspect-ratio: 1; background: var(--soft, #f4f2ee); display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid var(--line); }
.drv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.drv-thumb .i { width: 34px; height: 34px; opacity: .6; }
.drv-item.folder .drv-thumb { aspect-ratio: 3 / 2; }
.drv-item:hover .drv-thumb { border-color: var(--ink, #111); }
.drv-name { font-size: 13px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 600px) { .drv-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* Tjekliste og retur-billeder */
.checklist .check-item { cursor: pointer; }
.checklist .check-item input { width: 20px; height: 20px; accent-color: var(--ink, #111); flex: none; }
.checklist .check-item.done .title { text-decoration: line-through; opacity: .5; }
.ret-cta p { margin: 0 0 16px; }
.ret-cta .btn, .ret-big { display: inline-flex; align-items: center; gap: 8px; }
.ret-cta .btn .i svg, .ret-big .i svg { width: 18px; height: 18px; }
.ret-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 8px; }
.ret-big { padding: 16px 26px; font-size: 15px; }
.ret-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.ret-grid.sm { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; margin-bottom: 12px; }
.ret-photo { position: relative; display: flex; flex-direction: column; gap: 4px; }
.ret-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; border: 1px solid var(--line); }
.ret-photo .icon-btn { position: absolute; top: 6px; right: 6px; background: #fff; }
.ret-row.has .pill { white-space: nowrap; }
@media (max-width: 600px) { .ret-grid { grid-template-columns: repeat(2, 1fr); } .ret-big { width: 100%; justify-content: center; } }

/* vagtplan */
.shift-today { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.shift-today .shift-time { font-size: 22px; letter-spacing: .01em; }
.pat { display: flex; flex-direction: column; gap: 6px; }
.pat-row { display: grid; grid-template-columns: 120px 1fr auto 1fr; gap: 8px; align-items: center; }
.pat-row .input:disabled { opacity: .35; }
.shift-nav { align-items: center; margin: 18px 0 10px; }
.shift-nav .center { text-align: center; }
.shift-day.past { opacity: .55; }
.shift-day.is-today { box-shadow: inset 3px 0 0 currentColor; }
.shift-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.shift-line.off > span:not(.pill), .shift-line.off strong { text-decoration: line-through; opacity: .6; }
.link-btn { background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; font: inherit; font-size: 13px; color: inherit; opacity: .75; }

.ret-photo.matched img { outline: 2px solid currentColor; outline-offset: -2px; }
.ret-match { display: flex; gap: 16px; align-items: flex-start; }
.ret-match > img { width: 140px; flex: none; object-fit: cover; aspect-ratio: 3/4; }
.ret-match .list { max-height: 50vh; overflow: auto; }
@media (max-width: 600px) { .ret-match { flex-direction: column; } .ret-match > img { width: 100%; max-height: 220px; } }
button.list-item { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; font: inherit; color: inherit; }
button.list-item.active { padding-left: 8px; box-shadow: inset 3px 0 0 currentColor; }
.ret-photo .btn.small { width: 100%; margin-top: 4px; }

/* =================== Mobil: app-agtig brug på telefonen =================== */
.tabbar, .o-cards { display: none; }
@media (max-width: 900px) {
  /* fast bundmenu med de vigtigste genveje */
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 65; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
  .tabbar .tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 2px 5px; border: 0; background: none; color: var(--ink-3); font: inherit; font-size: 10.5px; letter-spacing: .04em; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .tabbar .tab .ico { width: 22px; height: 22px; }
  .tabbar .tab .ico svg { width: 22px; height: 22px; }
  .tabbar .tab.on { color: var(--black); font-weight: 600; }
  .tabbar .tab.on .ico svg { stroke-width: 1.9; }
  .content { padding: 22px 16px calc(96px + env(safe-area-inset-bottom)); }
  .topbar { padding-top: max(14px, env(safe-area-inset-top)); }
  .sidebar { padding-bottom: env(safe-area-inset-bottom); overflow-y: auto; max-height: 100dvh; }

  /* overskrifter og luft */
  h1.page-title, .title-input { font-size: 30px; line-height: 1.12; }
  .head-row { flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
  .head-row .sub { font-size: 14px; }
  h2.section { font-size: 19px; margin: 32px 0 12px; }

  /* ingen zoom ved tryk i felter på iPhone (kræver min. 16px) */
  .input, select.input, textarea.input, input[type=search], input[type=date], input[type=time], select { font-size: 16px !important; }

  /* større trykflader */
  .btn { min-height: 44px; }
  .btn.small { min-height: 36px; }
  .icon-btn { min-width: 40px; min-height: 40px; }
  .list-item { padding: 14px 0; }
  .list-item:hover { padding-left: 0; }

  /* forsiden: hilsen og vagter først, mindre billede */
  .today-hero { gap: 14px; padding-bottom: 20px; }
  .today-hero .script { display: none; }
  .today-photos, .today-photos.single { height: 150px; margin: -22px -16px 0; }
  .shift-today .shift-time { font-size: 26px; }
  .shift-today .btn { width: 100%; justify-content: center; }

  /* modaler som ark fra bunden */
  .modal-wrap, .modal-bg, .overlay { align-items: flex-end !important; padding: 0 !important; }
  .modal { width: 100%; max-height: 92dvh; border: 0; border-top: 1px solid var(--black); padding-bottom: env(safe-area-inset-bottom); }
  .modal-head { padding: 20px 18px 0; } .modal-head h3 { font-size: 24px; }
  .modal-body { padding: 18px 18px 6px; } .modal-foot { padding: 8px 18px 20px; }
  .modal-foot .right { width: 100%; } .modal-foot .right .btn { flex: 1; }
  .row { flex-wrap: wrap; }

  /* tabeller: rul vandret i stedet for at sprænge siden */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 0 16px; }
  .table td, .table th { white-space: nowrap; }
  .table td:last-child { white-space: normal; }

  /* ordreoverblik som kort */
  .n-wrap { display: none; }
  .o-cards { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
  .o-card { padding: 14px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
  .o-card.today { box-shadow: inset 3px 0 0 var(--black); padding-left: 10px; }
  .o-card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 14px; }
  .o-card-top .n-status { font-size: 12px; }
  .o-card-date { margin-left: auto; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
  .o-card-name { margin-top: 6px; font-size: 15px; }
  .o-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
  .o-card-pay { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); }

  /* faneblade og knaprækker kan rulles */
  .seg, .tabs, .doc-tabs { overflow-x: auto; max-width: 100%; flex-wrap: nowrap; scrollbar-width: none; }
  .shift-nav { flex-wrap: nowrap !important; gap: 8px; }
  .shift-nav .btn { flex: none; }
  .pat-row { grid-template-columns: 92px 1fr auto 1fr; }

  /* retur-billeder: tre pr. række og store knapper */
  .ret-actions { display: flex; flex-direction: column; gap: 10px; }
  .ret-actions .btn { width: 100%; justify-content: center; }
}
@media (max-width: 600px) { .ret-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; } .ret-photo .small { font-size: 10.5px; } }
@media (max-width: 900px) {
  .head-row > div, .filters { min-width: 0; max-width: 100%; }
  .seg { display: flex; width: max-content; max-width: 100%; overflow-x: auto; }
  .seg button { flex: none; height: 40px; }
  .o-card-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .o-card .n-status { padding-top: 3px; padding-bottom: 3px; max-width: 62%; }
  .shell { overflow-x: hidden; }
}
/* tabeller i håndbogssider (fx importeret fra Notion) */
.editor table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; display: block; overflow-x: auto; }
.editor th, .editor td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.editor th { background: var(--line-2, #f6f6f6); font-weight: 600; }
/* samarbejder */
.collab-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.collab-bar .collab-search { flex: 1; min-width: 160px; max-width: 320px; }
.collab-bar .btn { margin-left: auto; }
@media (max-width: 900px) { .collab-bar .collab-search { max-width: none; } .collab-bar .btn { margin-left: 0; width: 100%; } }
/* ambassadører */
.amb-thumb { width: 40px; height: 52px; object-fit: cover; background: var(--cream); flex: none; }
.amb-qr { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.amb-qr img { width: 96px; height: 96px; object-fit: contain; border: 1px solid var(--line); }
.amb-link { border: 1px solid var(--line); padding: 12px; margin-top: 8px; display: grid; gap: 8px; }
.amb-link code { font-size: 12px; word-break: break-all; background: var(--wash); padding: 6px 8px; }
.amb-link .right { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 900px) { .amb-row .btn.small { display: none; } }

.drv-cell { position: relative; min-width: 0; }
.drv-dl { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); color: var(--ink, #111); text-decoration: none; font-size: 15px; opacity: 0; transition: opacity .15s; }
.drv-cell:hover .drv-dl, .drv-dl:focus { opacity: 1; }
@media (hover: none) { .drv-dl { opacity: 1; } }
.drv-drop { border: 1px dashed var(--line); padding: 14px; text-align: center; font-size: 13px; color: var(--muted, #777); margin-bottom: 16px; }
.drv-drop.on { border-color: var(--ink, #111); color: var(--ink, #111); background: var(--soft, #f4f2ee); }
.drv-prog { border: 1px solid var(--line); padding: 12px 14px; margin-bottom: 16px; display: grid; gap: 6px; }
.drv-prog .bar { height: 4px; background: var(--soft, #f4f2ee); }
.drv-prog .bar span { display: block; height: 100%; background: var(--ink, #111); transition: width .2s; }

.amb-stars { display: inline-flex; gap: 1px; font-size: 13px; letter-spacing: 0; vertical-align: middle; color: #d6d1c7; }
.amb-stars .on { color: var(--ink, #111); }
.amb-stars.edit { font-size: 24px; gap: 4px; }
.amb-stars.edit button { background: none; border: 0; padding: 0 2px; cursor: pointer; color: #d6d1c7; font-size: inherit; line-height: 1; }
.amb-stars.edit button.on { color: var(--ink, #111); }
.amb-internal { border: 1px dashed var(--line); padding: 12px; display: grid; gap: 8px; margin: 8px 0; background: var(--soft, #f7f5f1); }
.amb-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.amb-tile { position: relative; aspect-ratio: 1; border: 1px solid var(--line); background: var(--soft, #f4f2ee); padding: 0; cursor: pointer; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.amb-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.amb-tile:hover { border-color: var(--ink, #111); }
.amb-play { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.65); color: #fff; font-size: 11px; padding: 3px 6px; }
.amb-gal-group { margin-bottom: 28px; }
.amb-gal-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.amb-view { display: flex; justify-content: center; background: #111; }
.amb-view img, .amb-view video { max-width: 100%; max-height: 70vh; display: block; }
button.pill { cursor: pointer; border: 1px solid var(--line); background: transparent; font: inherit; }

.ls-group { margin-bottom: 28px; }
.ls-group.past { opacity: .6; }
.ls-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.ls-head h3 { margin: 0; font-size: 18px; text-transform: none; }
.ls-head h3::first-letter { text-transform: uppercase; }
.ls-status { width: auto; min-width: 120px; padding: 6px 8px; font-size: 13px; }
.ls-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.ls-row:hover .title { text-decoration: underline; }
.ls-row .grow { flex: 1; min-width: 0; }
.ls-row .ls-status { flex: 0 0 150px; width: 150px; }

/* ---------- Lime Studio: eget udtryk (Helvetica, sort/hvid, limegrøn accent – som limestudio.dk) ---------- */
html[data-ws="lime"] { --serif: "Helvetica Neue", Helvetica, Arial, sans-serif; --sans: "Helvetica Neue", Helvetica, Arial, sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace;
  --lime: oklch(0.80 0.17 128); --lime-ink: oklch(0.45 0.12 128); --cream: #f4f4f2; --sand: #e8e8e8; --pos: var(--lime-ink); }
html[data-ws="lime"] body { font-feature-settings: normal; }
html[data-ws="lime"] ::selection { background: var(--lime); color: var(--black); }
html[data-ws="lime"] h1.page-title, html[data-ws="lime"] .today-text .page-title { font-weight: 500; letter-spacing: -.035em; font-variation-settings: normal; }
html[data-ws="lime"] h2, html[data-ws="lime"] h3, html[data-ws="lime"] .sec h2 { font-weight: 500; letter-spacing: -.02em; }
html[data-ws="lime"] .label, html[data-ws="lime"] .eyebrow, html[data-ws="lime"] .nav-label, html[data-ws="lime"] .brand .sys-sub, html[data-ws="lime"] .ws-switch button, html[data-ws="lime"] .crumb, html[data-ws="lime"] .sec-link, html[data-ws="lime"] kbd { font-family: var(--mono); letter-spacing: .06em; }
html[data-ws="lime"] .script { display: none; }
html[data-ws="lime"] .brand-lime { gap: 10px; }
html[data-ws="lime"] .brand-lime .sys { font-family: var(--sans); font-weight: 500; font-size: 21px; letter-spacing: -.03em; }
html[data-ws="lime"] .lime-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--lime); flex: none; }
html[data-ws="lime"] .ws-switch button.on { background: var(--lime); color: var(--black); }
html[data-ws="lime"] .nav-item.active { background: var(--black); color: var(--white); }
html[data-ws="lime"] .nav-item.active .ico { color: var(--lime); }
html[data-ws="lime"] .lime-tag { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--ink-3); margin-top: 26px; display: inline-flex; align-items: center; gap: 10px; }
html[data-ws="lime"] .lime-tag::before { content: ""; width: 28px; height: 2px; background: var(--lime); }
html[data-ws="lime"] .today-hero { border-bottom-color: var(--black); }
html[data-ws="lime"] .btn { font-family: var(--mono); letter-spacing: .04em; text-transform: none; font-size: 12px; border-radius: 999px; }
html[data-ws="lime"] .btn:not(.secondary):not(.ghost):not(.danger):hover { background: var(--lime); color: var(--black); border-color: var(--lime); }
html[data-ws="lime"] a:hover .title, html[data-ws="lime"] .sec-link:hover { text-decoration-color: var(--lime); }

.creator-wrap { display: flex; flex-direction: column; gap: 18px; }
.creator-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.creator-frame { width: 100%; height: calc(100vh - 220px); min-height: 640px; border: 1px solid var(--line); background: var(--white); }
@media (max-width: 760px) { .creator-frame { height: calc(100vh - 160px); min-height: 480px; } }

.ls-allergy { font-size: 12px; color: var(--ink-4); margin-top: 2px; }
.ls-allergy.has { color: var(--warn); font-weight: 500; }
.ls-allergy.none { color: var(--ink-3); }
.ls-rates { display: flex; gap: 8px; flex: none; }
.ls-rate { display: flex; flex-direction: column; gap: 2px; }
.ls-rate > span { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.ls-pay { width: 118px; padding: 5px 8px; font-size: 12.5px; }
.ls-pay.pay-betalt { background: #eef6e4; border-color: #b8d99a; }
.ls-pay.pay-sendt { background: #fff7e6; }
.ls-pay.pay-ikke_sendt { color: var(--ink-3); }
.ls-special { flex: none; }
.ls-copy { font-size: 15px; width: 34px; height: 34px; border: 1px solid var(--line); background: var(--white); cursor: pointer; flex: none; }
.ls-copy:hover { border-color: var(--black); }
.ls-head .btn.ghost { margin-left: auto; }
.ls-link { padding: 12px 14px; background: var(--wash); border: 1px solid var(--line); margin: 4px 0 14px; }
.ls-link-row { display: flex; gap: 10px; align-items: center; margin-top: 6px; }
.ls-link-row code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
@media (max-width: 760px) { .ls-row { flex-wrap: wrap; } .ls-row .grow { flex-basis: 100%; } .ls-row .ls-status { flex: 1 1 130px; width: auto; } }

.offer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.offer-card { border: 1px solid var(--line); display: flex; flex-direction: column; background: var(--white); }
.offer-card.st-accepteret { border-color: var(--black); }
.offer-card.st-afvist { opacity: .55; }
.offer-open { text-align: left; background: none; border: 0; padding: 18px 18px 14px; cursor: pointer; flex: 1; }
.offer-open:hover .offer-client { text-decoration: underline; }
.offer-open .eyebrow { margin-bottom: 8px; }
.offer-client { font-size: 19px; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
.offer-amount { margin-top: 14px; font-size: 22px; letter-spacing: -.02em; }
.offer-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px 12px 18px; border-top: 1px solid var(--line); }
.offer-acts { margin-left: auto; display: flex; }
.offer-foot .offer-st { flex: none; width: 128px; }
.offer-bar [hidden] { display: none; }
.offer-ov { position: fixed; inset: 0; z-index: 200; background: #e9e9e6; display: flex; flex-direction: column; }
.offer-bar { display: flex; align-items: center; gap: 10px; padding: 10px 18px; background: var(--white); border-bottom: 1px solid var(--line); }
.offer-bar .grow { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.offer-stage { flex: 1; overflow: hidden; display: flex; justify-content: center; padding: 18px; }
.offer-frame { width: min(100%, 900px); height: 100%; border: 0; background: var(--white); box-shadow: 0 1px 12px rgba(0,0,0,.08); }
@media print { .offer-ov { display: none; } }

/* ---------- Mødenoter (skriveark pr. deltager) ---------- */
.ls-note { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; margin-top: 6px; padding: 0; border: 0; background: none; cursor: pointer; font-size: 12.5px; color: var(--ink-3); text-align: left; }
.ls-note .ls-note-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-note:hover .ls-note-text { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.ls-note.has .ls-note-text { color: var(--ink-2); font-style: italic; }
.ls-note.has .ls-note-text::before { content: "“"; } .ls-note.has .ls-note-text::after { content: "”"; }
.ls-met { flex: none; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; padding: 1px 7px; border-radius: 999px; background: var(--lime, #d9f2a6); color: var(--black); font-style: normal; }
.ls-notebtn { font-size: 16px; color: var(--ink-3); display: grid; place-items: center; }
.ls-notebtn.has { color: var(--black); border-color: var(--black); }
.ls-notebtn:hover { color: var(--black); border-color: var(--black); }
.mn-overlay { position: fixed; inset: 0; z-index: 120; background: rgba(20,20,20,.18); backdrop-filter: blur(2px); display: flex; justify-content: flex-end; animation: fade .18s ease; }
.mn-overlay.out { opacity: 0; transition: opacity .18s ease; }
.mn-panel { width: min(720px, 100%); height: 100%; background: var(--white); border-left: 1px solid var(--black); display: flex; flex-direction: column; overflow-y: auto; padding: 22px 44px 0; animation: mnSlide .28s var(--ease); box-shadow: -30px 0 80px rgba(0,0,0,.08); }
@keyframes mnSlide { from { transform: translateX(40px); opacity: 0; } }
.mn-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 18px; }
.mn-eyebrow { font-family: var(--mono, ui-monospace, monospace); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); display: inline-flex; align-items: center; gap: 10px; }
.mn-eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--lime, var(--black)); }
.mn-nav { display: flex; align-items: center; gap: 6px; font-family: var(--mono, ui-monospace, monospace); font-size: 12px; color: var(--ink-3); margin-left: auto; }
.mn-navbtn { width: 30px; height: 30px; border: 1px solid var(--line); background: var(--white); border-radius: 999px; cursor: pointer; font-size: 16px; line-height: 1; }
.mn-navbtn:hover:not(:disabled) { border-color: var(--black); }
.mn-navbtn:disabled { opacity: .35; cursor: default; }
.mn-close { font-size: 18px; }
.mn-person h2 { margin: 6px 0 4px; font-family: var(--serif); font-weight: 500; font-size: 34px; letter-spacing: -.03em; line-height: 1.1; }
.mn-course { color: var(--ink-2); font-size: 14px; }
.mn-course::first-letter { text-transform: uppercase; }
.mn-contact { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; font-size: 13.5px; color: var(--ink-3); }
.mn-contact a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line); }
.mn-contact a:hover { border-color: var(--black); color: var(--black); }
.mn-dot { color: var(--ink-4); }
.mn-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.mn-tag { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--cream); color: var(--ink-2); }
.mn-tag.soft { color: var(--ink-3); }
.mn-tag.warn { background: #f6e8ec; color: var(--warn); font-weight: 500; }
.mn-met { font: inherit; font-size: 12px; padding: 3px 12px; border-radius: 999px; border: 1px dashed var(--ink-4); background: var(--white); color: var(--ink-2); cursor: pointer; }
.mn-met:hover { border-color: var(--black); color: var(--black); }
.mn-met.on { border: 1px solid var(--lime, var(--black)); background: var(--lime, var(--black)); color: var(--black); }
.mn-tools { display: flex; flex-wrap: wrap; gap: 6px; margin: 28px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.mn-chip { font: inherit; font-size: 12.5px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink-2); cursor: pointer; transition: border-color .15s, background .15s; }
.mn-chip:hover { border-color: var(--black); color: var(--black); }
.mn-chip.date { background: var(--black); color: var(--white); border-color: var(--black); }
.mn-chip.date:hover { background: var(--lime, #333); color: var(--black); border-color: var(--lime, #333); }
.mn-chip.ghost { border-style: dashed; color: var(--ink-3); }
.mn-paper { flex: 1; margin: 18px -16px 0; padding: 22px 16px; background: var(--cream); border-radius: 4px; }
.mn-text { display: block; width: 100%; min-height: 360px; border: 0; outline: none; resize: none; background: transparent; font-family: var(--serif); font-size: 16.5px; line-height: 1.8; color: var(--ink); overflow: hidden; }
.mn-text::placeholder { color: var(--ink-4); }
.mn-foot { position: sticky; bottom: 0; display: flex; gap: 14px; align-items: center; padding: 14px 0 18px; margin-top: 8px; background: var(--white); border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); font-family: var(--mono, ui-monospace, monospace); }
.mn-status.ok::before { content: "● "; color: var(--lime-ink, #4a7a2a); }
.mn-status.busy { color: var(--ink-3); }
.mn-status.err { color: var(--warn); }
.mn-last { margin-left: auto; }
.mn-open { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); background: var(--cream); cursor: pointer; font: inherit; text-align: left; }
.mn-open:hover { border-color: var(--black); }
.mn-open-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); font-style: italic; }
.mn-open-cta { flex: none; font-size: 12px; font-weight: 500; }
@media (max-width: 720px) { .mn-panel { padding: 16px 20px 0; border-left: 0; } .mn-person h2 { font-size: 26px; } .ls-notebtn { display: none; } }

/* ---------- Privat gennemgang ---------- */
.ls-private { border: 1px solid var(--black); padding: 18px 22px 8px; margin-bottom: 36px; position: relative; }
.ls-private::before { content: ""; position: absolute; left: -1px; top: -1px; width: 48px; height: 4px; background: var(--lime, var(--black)); }
.ls-private .ls-head h3::after { content: " ●"; color: var(--lime, var(--black)); font-size: 12px; vertical-align: middle; }
.ls-private .ls-row:last-child { border-bottom: 0; }
.ls-private-empty { padding: 6px 0 14px; }
.ls-privdate { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.ls-privdate::first-letter { text-transform: uppercase; }
.ls-privdate.open { color: var(--warn); }
.ls-privcheck { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin: 4px 0 14px; background: var(--cream); cursor: pointer; }
.ls-privcheck input { margin-top: 4px; }
.pp-list { margin-top: 14px; max-height: 50vh; overflow-y: auto; border-top: 1px solid var(--line); }
.pp-date { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 14px 0 6px; font-family: var(--mono, ui-monospace, monospace); }
.pp-date::first-letter { text-transform: uppercase; }
.pp-row { display: flex; gap: 12px; align-items: center; padding: 9px 10px; margin: 0 -10px; cursor: pointer; border-radius: 4px; }
.pp-row:hover { background: var(--wash); }
.pp-row.on { background: var(--cream); }
.pp-row .grow { display: flex; flex-direction: column; min-width: 0; }
.pp-name { font-weight: 500; }
