/* ============================================================
   Development Plan — JM Sandberg Identitet 3.0, appläge
   Samma design som CRM:et (crm.jmsandberg.com) och SCB-appen:
   ljus glas-topbar, grå arbetsyta med vita kort, pillerkontroller,
   hårlinjer i 0,5 px, en handlingsfärg (#1F4BD8), Helvetica Neue i
   text och Neue Haas Display Medium i rubriker. Inga versaler, två
   vikter (400/500), inga skuggor på kort, laddning som skelett.
   ============================================================ */

:root {
  /* Roller */
  --ink:        #1D1D1F;   /* bläck — all primär text */
  --ink-2:      #6E6E73;   /* bläck 2 — sekundär text */
  --ink-3:      #8E8E93;   /* ikoner, platshållare */
  --paper:      #FFFFFF;
  --surface-2:  #F5F5F7;   /* arbetsyta */
  --line:       rgba(60, 60, 67, 0.18);
  --line-strong:rgba(60, 60, 67, 0.29);
  --fyll:       rgba(120, 120, 128, 0.12);
  --fyll-2:     rgba(120, 120, 128, 0.08);
  --fyll-3:     rgba(120, 120, 128, 0.20);
  --handling:   #1F4BD8;
  --handling-hover: #17379F;
  --handling-yta:   rgba(31, 75, 216, 0.075);
  --handling-yta-2: rgba(31, 75, 216, 0.14);

  /* Status: tonad yta + text i tonfärg. *-fill = systemfärg för bockar/prickar */
  --red:    #E9152D; --red-bg:    rgba(255, 56, 60, 0.11);  --red-fill:    #FF383C;
  --green:  #008932; --green-bg:  rgba(52, 199, 89, 0.13);  --green-fill:  #34C759;
  --yellow: #C55300; --yellow-bg: rgba(255, 141, 40, 0.13); --yellow-fill: #FF8D28;
  --blue:   #1F4BD8; --blue-bg:   var(--handling-yta);
  --success: var(--green);
  --warning: var(--yellow);
  --error:   var(--red);
  --info:    var(--handling);

  /* Historiska v6-namn → 3.0 (används i app.js inline-stilar) */
  --brand-teal:  var(--ink);
  --brand-black: var(--ink);
  --signal:      var(--handling);
  --signal-deep: var(--handling);
  --signal-50:   var(--handling-yta);
  --black-50:  #F5F5F7;
  --black-100: rgba(60, 60, 67, 0.12);
  --black-200: rgba(60, 60, 67, 0.18);
  --black-300: #8E8E93;
  --black-400: #6E6E73;
  --black-500: #6E6E73;
  --black-600: #3A3A3C;
  --black-700: #1D1D1F;
  --black-800: #1D1D1F;
  --black-900: #1D1D1F;
  --surface-mist: var(--surface-2);
  --bg-canvas:   var(--surface-2);
  --bg-elevated: var(--paper);

  /* Form */
  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-chip: 980px;
  --radius-full: 980px;
  --pill:      980px;

  --shadow-float: 0 0 0 0.5px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.10);
  --shadow-modal: 0 0 0 0.5px rgba(0, 0, 0, 0.08), 0 16px 48px rgba(0, 0, 0, 0.16);
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: var(--shadow-float);
  --shadow-xl: var(--shadow-modal);
  --ring: 0 0 0 3.5px rgba(31, 75, 216, 0.16);

  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "Neue Haas Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: var(--font-sans);   /* ingen monospace i 3.0 — siffror med tabular-nums */

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.43;
  letter-spacing: -0.006em;
  color: var(--ink);
  background: var(--surface-2);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 400;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.008em;
  line-height: 1.2;
  color: var(--ink);
}
h1 { font-size: 28px; letter-spacing: -0.015em; line-height: 1.14; }
h2 { font-size: 20px; }
h3 { font-size: 17px; }
h4 { font-size: 15px; }
strong, b { font-weight: 500; }
::selection { background: var(--handling-yta-2); }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; font-size: inherit; letter-spacing: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; border: none; outline: none; background: transparent; letter-spacing: inherit; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--handling); }
:focus-visible { outline: none; box-shadow: var(--ring); }
/* Fält visar fokus på sin ram (input-wrap, add-kr) eller egen regel — ingen dubbelring */
input:focus-visible, textarea:focus-visible, select:focus-visible { box-shadow: none; }

/* Etiketter: vanlig text, aldrig versaler eller spärrning */
.eyebrow, .stat-label, .field-label, .form-row label, .login-form label,
.impact-col-label, .impact-field > label, .buckets-title, .pop-section,
.selector .lbl-tag, .people-label, .kr-progress-summary .label-text {
  font-family: var(--font-sans);
  letter-spacing: -0.006em;
  text-transform: none;
}

/* ====== APP SHELL ====== */
.app { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }

/* ====== LOGIN ====== */
.login-screen { min-height: 100vh; display: flex; align-items: stretch; background: var(--paper); }
.login-hero {
  flex: 1 1 50%;
  background: url('/login-hero.jpg') center / cover no-repeat;
}
.login-side {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
}
.login-card { width: 100%; max-width: 360px; }
.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}
.login-brand .brand-logo-large { height: 22px; width: auto; display: block; filter: brightness(0); opacity: 0.9; }
.login-brand small { font-size: 15px; color: var(--ink-2); }
.login-form { display: flex; flex-direction: column; gap: 16px; }
.login-form label { font-size: 13px; font-weight: 500; color: var(--ink); margin-bottom: 6px; display: block; }
.login-form .input-wrap,
.form-row .input-wrap {
  background: var(--paper);
  border: 0.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.login-form .input-wrap:focus-within,
.form-row .input-wrap:focus-within { border-color: var(--handling); box-shadow: var(--ring); }
.login-form input { width: 100%; font-size: 15px; color: var(--ink); }
.login-form .login-btn {
  margin-top: 8px;
  background: var(--handling);
  color: #fff;
  padding: 12px;
  border-radius: var(--pill);
  font-weight: 500;
  font-size: 15px;
  transition: background 0.15s var(--ease);
}
.login-form .login-btn:hover { background: var(--handling-hover); }
.login-form .login-btn:disabled { opacity: 0.6; cursor: wait; }
.login-error {
  padding: 10px 14px;
  background: var(--red-bg);
  color: var(--red);
  border-radius: var(--radius-sm);
  font-size: 13px;
  text-align: center;
  display: none;
}
.login-error.show { display: block; }
.login-foot { text-align: center; margin-top: 24px; font-size: 12px; color: var(--ink-3); }

/* ====== TOPBAR (glas, som i CRM:et) ====== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 245, 247, 0.72);
  backdrop-filter: saturate(160%) blur(22px);
  -webkit-backdrop-filter: saturate(160%) blur(22px);
  border-bottom: 0.5px solid var(--line);
}
.topbar-inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 32px;
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand-mark { display: flex; align-items: center; gap: 14px; }
.brand-mark .brand-logo { height: 15px; width: auto; display: block; filter: brightness(0); opacity: 0.9; }
.brand-mark .brand-tag {
  font-size: 14px;
  color: var(--ink-2);
  padding-left: 14px;
  border-left: 0.5px solid var(--line-strong);
  line-height: 18px;
}
.topbar-divider { display: none; }

.selector-group { display: flex; align-items: center; gap: 8px; flex: 1; flex-wrap: wrap; }
.selector {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--fyll);
  border-radius: var(--pill);
  font-size: 13px;
  color: var(--ink);
  transition: background 0.15s var(--ease);
  cursor: pointer;
  position: relative;
}
.selector:hover { background: var(--fyll-3); }
.selector .chev { font-size: 9px; color: var(--ink-3); }
.selector .lbl-tag { font-size: 13px; color: var(--ink-2); }
.selector strong { font-weight: 500; color: var(--ink); }

.topbar-actions { display: flex; align-items: center; gap: 8px; }
.export-wrap { position: relative; }
.export-wrap .btn { gap: 6px; }
.export-wrap .pop-item { width: 100%; text-align: left; }
.popover .pop-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  border-radius: var(--radius-sm);
  user-select: none;
}
.popover .pop-checkbox:hover { background: var(--fyll-2); }
.popover .pop-checkbox input { width: 15px; height: 15px; margin: 0; cursor: pointer; }

/* ====== KNAPPAR: piller, en fylld per vy ====== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--pill);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
  white-space: nowrap;
}
.btn-ghost { color: var(--ink-2); background: transparent; }
.btn-ghost:hover { background: var(--fyll); color: var(--ink); }
.btn-secondary { background: var(--fyll); color: var(--ink); }
.btn-secondary:hover { background: var(--fyll-3); }
.btn-primary { background: var(--handling); color: #fff; }
.btn-primary:hover { background: var(--handling-hover); }
.btn-primary:disabled, .btn-secondary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-danger { color: var(--red); background: transparent; }
.btn-danger:hover { background: var(--red-bg); }
.btn-icon { padding: 0; width: 32px; height: 32px; border-radius: 50%; }

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 3px 3px 12px;
  background: var(--fyll);
  border-radius: var(--pill);
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  position: relative;
  transition: background 0.15s var(--ease);
}
.user-pill:hover { background: var(--fyll-3); }
.user-pill .avatar {
  width: 26px; height: 26px;
  background: var(--paper);
  border-radius: 50%;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 500;
}
.role-badge {
  font-size: 12px;
  background: var(--paper);
  color: var(--ink-2);
  padding: 1px 8px;
  border-radius: var(--pill);
}
.role-badge.admin { background: var(--handling-yta-2); color: var(--handling); }

/* ====== SIDA ====== */
.page { max-width: 1480px; margin: 0 auto; padding: 32px 32px 80px; width: 100%; }

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 24px;
  flex-wrap: wrap;
}
.page-header .eyebrow { font-size: 15px; color: var(--ink-2); margin-top: 4px; }
.page-header .subtitle { color: var(--ink-2); font-size: 15px; margin-top: 4px; }
.page-people { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.people-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px;
  background: var(--paper);
  border: 0.5px solid var(--line);
  border-radius: var(--pill);
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
}
.people-pill.leader { background: var(--paper); }
.people-pill .people-label { font-size: 13px; color: var(--ink-2); font-weight: 400; }

/* ====== ÖVERSIKT ====== */
.overview {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--paper);
  border: 0.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.stat-card .stat-label { font-size: 13px; color: var(--ink-2); margin-bottom: 10px; }
.stat-card .stat-value {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-variant-numeric: tabular-nums;
}
.stat-card .stat-value .unit { font-family: var(--font-sans); font-size: 15px; color: var(--ink-2); font-weight: 400; letter-spacing: -0.006em; }
.stat-card .stat-sub { font-size: 13px; color: var(--ink-2); margin-top: 8px; }

.ring-wrap { display: flex; align-items: center; gap: 20px; }
.ring { width: 88px; height: 88px; flex-shrink: 0; position: relative; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .ring-bg { fill: none; stroke: var(--fyll); stroke-width: 8; }
.ring .ring-fg { fill: none; stroke: var(--ink); stroke-width: 8; stroke-linecap: round; transition: stroke-dasharray 0.9s var(--ease-spring); }
.ring .ring-pct {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 20px; font-weight: 500; color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.progress-bar {
  height: 6px;
  background: var(--fyll);
  border-radius: var(--pill);
  overflow: visible;
  margin-top: 14px;
  position: relative;
}
.progress-bar .fill { height: 100%; background: var(--ink); border-radius: var(--pill); transition: width 0.9s var(--ease-spring); }
.progress-bar.timeline .fill { background: var(--ink-3); }
.progress-bar .marker { position: absolute; top: -3px; width: 2px; height: 12px; background: var(--ink); border-radius: 1px; }

/* ====== FLIKAR: segmentkontroll ====== */
.tabs {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  margin-bottom: 28px;
  background: var(--fyll);
  border-radius: var(--pill);
}
.tab-btn {
  padding: 6px 18px;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-2);
  border-radius: var(--pill);
  transition: color 0.12s var(--ease), background 0.12s var(--ease);
}
.tab-btn:hover:not(.active) { color: var(--ink); }
.tab-btn.active {
  background: var(--paper);
  color: var(--ink);
  font-weight: 500;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.12);
}

/* ====== IMPACT ASSESSMENT ====== */
.impact-tab { display: flex; flex-direction: column; gap: 20px; }
.impact-section {
  background: var(--paper);
  border: 0.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
}
.impact-section h3 { font-size: 20px; margin-bottom: 4px; }
.impact-prompt { color: var(--ink-2); font-size: 15px; line-height: 1.47; margin-bottom: 20px; }
.impact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.impact-col { display: flex; flex-direction: column; gap: 14px; }
.impact-col-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  padding-bottom: 10px;
  border-bottom: 0.5px solid var(--line);
}
.impact-col[data-side="leader"] .impact-col-label { color: var(--ink); }
.impact-field { display: flex; flex-direction: column; gap: 6px; }
.impact-field > label { font-size: 13px; font-weight: 500; color: var(--ink); }

.impact-tab textarea,
.obj-description,
.kr-comment-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--paper);
  border: 0.5px solid var(--line-strong);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  resize: vertical;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
  font-family: inherit;
}
.impact-tab textarea { min-height: 90px; overflow: hidden; }
.impact-tab textarea:focus,
.obj-description:focus,
.kr-comment-form textarea:focus { border-color: var(--handling); box-shadow: var(--ring); }
.impact-tab textarea[readonly],
.obj-description[readonly] { cursor: default; background: var(--surface-2); border-color: transparent; box-shadow: none; }
.impact-tab textarea::placeholder,
.obj-description::placeholder,
.kr-comment-form textarea::placeholder { color: var(--ink-3); }

.impact-behaviour { background: var(--surface-2); border-radius: var(--radius); padding: 14px 16px; }
.impact-behaviour textarea { min-height: 56px; font-size: 13px; }
.behaviour-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.behaviour-name { font-size: 15px; font-weight: 500; color: var(--ink); }

.star-rating { display: inline-flex; align-items: center; gap: 1px; }
.star {
  width: 26px; height: 26px;
  font-size: 19px;
  line-height: 1;
  color: var(--fyll-3);
  padding: 0;
  transition: color 0.18s var(--ease-spring), transform 0.1s;
}
.star:hover { transform: scale(1.15); }
.star.active { color: var(--ink); }
.star:disabled, .star-rating[data-readonly="true"] .star { cursor: default; }
.star:disabled:hover, .star-rating[data-readonly="true"] .star:hover { transform: none; }
.star-rating .rating-text { font-size: 12px; color: var(--ink-2); margin-left: 8px; font-variant-numeric: tabular-nums; }

@media (max-width: 880px) {
  .impact-grid { grid-template-columns: 1fr; }
  .impact-section { padding: 20px 18px; }
}

/* ====== BUCKETS / KANBAN ====== */
.buckets-row-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.buckets-title { font-size: 15px; color: var(--ink-2); }

.board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  align-items: start;
}
.bucket {
  background: var(--fyll-2);
  border-radius: var(--radius-lg);
  padding: 12px;
  display: flex;
  flex-direction: column;
  min-height: 200px;
  transition: background 0.2s var(--ease);
}
.bucket.drag-over { background: var(--handling-yta); outline: none; }

.bucket-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 6px 12px;
}
.bucket-head .bucket-title-wrap { display: flex; align-items: center; gap: 8px; }
.bucket-head .bucket-emoji { font-size: 16px; line-height: 1; }
.bucket-head .bucket-name {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 500; color: var(--ink);
  width: auto; min-width: 60px;
  border-radius: 6px;
}
.bucket-head .bucket-name:focus { outline: none; box-shadow: var(--ring); }
.bucket-head .bucket-name[contenteditable="false"] { cursor: default; }
.bucket-head .count {
  font-size: 12px;
  color: var(--ink-2);
  background: var(--fyll);
  padding: 1px 8px;
  border-radius: var(--pill);
  font-variant-numeric: tabular-nums;
}
.bucket-head .head-actions { display: flex; align-items: center; gap: 2px; }
.bucket-head .head-actions .btn-icon { width: 28px; height: 28px; color: var(--ink-3); opacity: 0; transition: opacity 0.15s var(--ease); }
.bucket:hover .bucket-head .head-actions .btn-icon { opacity: 1; }
.bucket-head .head-actions .btn-icon:hover { color: var(--ink); background: var(--fyll); }
.bucket-head .head-actions .btn-icon.danger:hover { color: var(--red); background: var(--red-bg); }

.objective-list { display: flex; flex-direction: column; gap: 8px; flex: 1; }

.add-objective {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px;
  margin-top: 8px;
  border-radius: var(--radius);
  color: var(--ink-2);
  font-size: 13px;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.add-objective:hover { background: var(--fyll); color: var(--ink); }

/* ====== OBJECTIVE-KORT ====== */
.obj-card {
  background: var(--paper);
  border: 0.5px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
  transition: border-color 0.15s var(--ease);
  position: relative;
}
.obj-card:hover { border-color: var(--line-strong); }
.obj-card.dragging { opacity: 0.4; }
.obj-medal {
  position: absolute;
  top: 12px; right: 12px;
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--green-fill);
  color: #fff;
  pointer-events: none;
  z-index: 2;
}
.obj-medal svg { width: 13px; height: 13px; }
.obj-card.complete .obj-title-row { padding-right: 28px; }

.obj-title { font-size: 15px; font-weight: 500; color: var(--ink); line-height: 1.33; margin-bottom: 6px; }
.obj-desc-preview {
  font-size: 13px; color: var(--ink-2); line-height: 1.45; margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.obj-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.obj-progress { flex: 1; height: 4px; background: var(--fyll); border-radius: var(--pill); overflow: hidden; }
.obj-progress .fill { height: 100%; background: var(--ink); border-radius: var(--pill); transition: width 0.6s var(--ease-spring); }
.obj-progress.complete .fill { background: var(--green-fill); }
.obj-kr-count { font-size: 12px; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.obj-due { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.obj-due.overdue { color: var(--red); }
.obj-due.soon { color: var(--yellow); }

/* ====== MODAL ====== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.28);
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s var(--ease);
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }

.modal {
  background: var(--paper);
  border-radius: var(--radius-xl);
  width: 100%; max-width: 720px;
  max-height: calc(100vh - 48px);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-modal);
  transform: translateY(8px) scale(0.985);
  transition: transform 0.3s var(--ease-spring);
  overflow: hidden;
}
.modal-overlay.open .modal { transform: none; }
.modal.modal-narrow { max-width: 480px; }
.modal.modal-wide { max-width: 880px; }

.modal-head {
  padding: 22px 24px 16px 28px;
  display: flex; align-items: flex-start; gap: 14px;
}
.modal-head .modal-head-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.modal-head .bucket-tag,
.modal-head .status-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px;
  background: var(--fyll);
  color: var(--ink);
  border-radius: var(--pill);
  font-size: 12px; font-weight: 500;
  margin-bottom: 10px;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.modal-head .modal-head-tags .bucket-tag,
.modal-head .modal-head-tags .status-tag { margin-bottom: 0; }
.modal-head .bucket-tag .ico { width: 12px; height: 12px; }
.modal-head .bucket-tag.tag-admin { background: var(--handling-yta-2); color: var(--handling); }
.modal-head .bucket-tag select,
.modal-head .status-tag select {
  background: transparent; border: none; cursor: pointer;
  color: inherit; font-weight: 500; padding-right: 2px;
  appearance: none; -webkit-appearance: none;
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ink-3);
  display: inline-block;
  transition: background 0.15s var(--ease);
}
.status-tag.active    { background: var(--handling-yta-2); color: var(--handling); }
.status-tag.active .status-dot { background: var(--handling); }
.status-tag.paused    { background: var(--yellow-bg); color: var(--yellow); }
.status-tag.paused .status-dot { background: var(--yellow-fill); }
.status-tag.cancelled { background: var(--fyll); color: var(--ink-2); }
.status-tag.cancelled .status-dot { background: var(--ink-3); }
.status-tag.complete  { background: var(--green-bg); color: var(--green); }
.status-tag.complete .status-dot { background: var(--green-fill); }

.obj-status-mini {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 1px 8px;
  border-radius: var(--pill);
  font-size: 11px;
  font-weight: 500;
  flex-shrink: 0;
}
.obj-status-mini.paused    { background: var(--yellow-bg); color: var(--yellow); }
.obj-status-mini.cancelled { background: var(--fyll); color: var(--ink-2); }
.obj-status-mini.complete  { background: var(--green-bg); color: var(--green); }
.obj-card.cancelled { opacity: 0.6; }
.obj-card.cancelled .obj-title { text-decoration: line-through; text-decoration-color: var(--ink-3); color: var(--ink-2); }
.obj-title-row { display: flex; align-items: flex-start; gap: 8px; justify-content: space-between; margin-bottom: 6px; }
.obj-title-row .obj-title { margin-bottom: 0; }
.modal-head h2 {
  font-size: 20px; line-height: 1.25; color: var(--ink);
  width: 100%; font-weight: 500;
  border-radius: var(--radius-sm); padding: 2px 6px; margin: -2px -6px;
}
.modal-head h2:focus { outline: none; background: var(--fyll-2); }
.modal-head .close {
  color: var(--ink-2);
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--fyll);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
  flex-shrink: 0;
}
.modal-head .close .ico { width: 13px; height: 13px; stroke-width: 2; }
.modal-head .close:hover { background: var(--fyll-3); color: var(--ink); }
.modal-head .head-content { flex: 1; min-width: 0; }

.modal-body { padding: 8px 28px 24px; overflow-y: auto; flex: 1; }

.field-block { margin-bottom: 24px; }
.field-block:last-child { margin-bottom: 0; }
.field-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
  display: flex; justify-content: space-between; align-items: center;
}
.field-label #kr-counter { font-weight: 400; color: var(--ink-2); }

.obj-description { min-height: 140px; font-size: 15px; line-height: 1.52; overflow: hidden; }

.due-input-wrap {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: var(--paper);
  border: 0.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
}
.due-input-wrap:focus-within { border-color: var(--handling); box-shadow: var(--ring); }
.due-input-wrap .icon { font-size: 13px; color: var(--ink-3); }
.due-input-wrap input { font-size: 13px; color: var(--ink); width: 140px; }

/* ====== KEY RESULTS ====== */
.kr-progress-summary {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 12px;
  padding: 14px 16px;
  background: var(--surface-2);
  border-radius: var(--radius);
}
.kr-progress-summary .ratio {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 500; color: var(--ink);
  line-height: 1; font-variant-numeric: tabular-nums;
}
.kr-progress-summary .ratio small { color: var(--ink-3); font-size: 15px; }
.kr-progress-summary .bar-wrap { flex: 1; }
.kr-progress-summary .bar { height: 6px; background: var(--fyll); border-radius: var(--pill); overflow: hidden; }
.kr-progress-summary .bar .fill { height: 100%; background: var(--ink); border-radius: var(--pill); transition: width 0.6s var(--ease-spring); }
.kr-progress-summary .label-text { font-size: 12px; color: var(--ink-2); margin-bottom: 6px; }

.kr-list { display: flex; flex-direction: column; gap: 6px; }

.kr-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  background: var(--paper);
  border: 0.5px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s var(--ease);
}
.kr-item:hover { border-color: var(--line-strong); }

.kr-status-cluster { position: relative; flex-shrink: 0; }
.kr-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--ink-3);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.18s var(--ease-spring), border-color 0.18s var(--ease-spring);
  cursor: pointer;
  background: var(--paper);
  position: relative;
}
.kr-check:hover { border-color: var(--ink); }
.kr-check svg { width: 12px; height: 12px; color: #fff; }
.kr-check .ico-done,
.kr-check .ico-paused,
.kr-check .ico-cancelled { display: none; }
.kr-item.status-done .kr-check { background: var(--green-fill); border-color: var(--green-fill); }
.kr-item.status-done .kr-check .ico-done { display: block; }
.kr-item.status-paused .kr-check { background: var(--yellow-fill); border-color: var(--yellow-fill); }
.kr-item.status-paused .kr-check .ico-paused { display: block; color: #fff; }
.kr-item.status-cancelled .kr-check { background: var(--ink-3); border-color: var(--ink-3); }
.kr-item.status-cancelled .kr-check .ico-cancelled { display: block; }

.kr-item.status-cancelled { opacity: 0.55; }
.kr-item.status-cancelled .kr-text,
.kr-item.status-done .kr-text,
.kr-item.done .kr-text { color: var(--ink-2); text-decoration: line-through; text-decoration-color: var(--ink-3); }

.kr-status-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-float);
  min-width: 180px;
  padding: 5px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.kr-status-popover[hidden] { display: none; }
.kr-status-option {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.kr-status-option:hover { background: var(--fyll-2); }
.kr-status-option.selected { background: var(--handling-yta); color: var(--handling); font-weight: 500; }
.kr-status-option .dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid var(--ink-3);
  background: var(--paper);
}
.kr-status-option .dot svg { width: 8px; height: 8px; color: #fff; }
.kr-status-option[data-status="done"] .dot      { background: var(--green-fill);  border-color: var(--green-fill); }
.kr-status-option[data-status="paused"] .dot    { background: var(--yellow-fill); border-color: var(--yellow-fill); }
.kr-status-option[data-status="paused"] .dot svg { color: #fff; }
.kr-status-option[data-status="cancelled"] .dot { background: var(--ink-3); border-color: var(--ink-3); }

.kr-text {
  flex: 1;
  min-width: 0;
  font-size: 14px; line-height: 1.45; color: var(--ink);
  padding: 2px 4px; border-radius: 6px;
  min-height: 20px;
  overflow-wrap: break-word;
}
.kr-text:focus { outline: none; background: var(--fyll-2); }
.kr-text[contenteditable="false"] { cursor: default; }

.kr-due-wrap { position: relative; display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; }
.kr-due-pill-wrap { position: relative; display: inline-block; }
.kr-due-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px;
  background: var(--fyll-2);
  border-radius: var(--pill);
  font-size: 12px;
  color: var(--ink-2);
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.kr-due-pill svg { width: 11px; height: 11px; flex-shrink: 0; }
.kr-due-pill:hover { background: var(--fyll); color: var(--ink); }
.kr-due-pill.has-date { background: var(--fyll); color: var(--ink); }
.kr-due-pill.overdue, .kr-due-pill.overdue:hover { background: var(--red-bg); color: var(--red); }
.kr-due-pill.soon, .kr-due-pill.soon:hover { background: var(--yellow-bg); color: var(--yellow); }
.kr-due-pill.done-style { background: var(--green-bg); color: var(--green); cursor: default; }
.kr-due-input[type="date"] {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  cursor: pointer;
  padding: 0; margin: 0;
  border: 0;
}
.kr-due-input[readonly] { display: none; }

.kr-due-clear {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1;
  transition: opacity 0.15s var(--ease), background 0.15s var(--ease);
  opacity: 0;
}
.kr-item:hover .kr-due-clear { opacity: 1; }
.kr-due-clear:hover { background: var(--red-bg); color: var(--red); }
.kr-item.done .kr-due-pill { opacity: 0.55; }

/* ====== KR-KOMMENTARER ====== */
.kr-block { display: flex; flex-direction: column; gap: 4px; }
.kr-comments-zone { display: flex; flex-direction: column; padding-left: 34px; margin-top: -2px; }
.kr-comment-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--pill);
  font-size: 12px;
  color: var(--ink-2);
  align-self: flex-start;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.kr-comment-toggle:hover { background: var(--fyll-2); color: var(--ink); }
.kr-comment-toggle.active { color: var(--handling); }
.kr-comment-toggle .ico-sm { width: 12px; height: 12px; }
.kr-comment-toggle .badge {
  background: var(--fyll);
  color: var(--ink);
  border-radius: var(--pill);
  padding: 0 7px;
  font-size: 11px;
  font-weight: 500;
}

.kr-comment-panel {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
  padding: 10px 12px;
  background: var(--surface-2);
  border-radius: var(--radius);
}
.kr-comment-panel[hidden] { display: none; }
.kr-comment-list { display: flex; flex-direction: column; gap: 6px; }
.kr-comment { display: flex; gap: 10px; align-items: flex-start; padding: 6px 2px; }
.kr-comment-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--fyll-3);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 500;
  flex-shrink: 0;
}
.kr-comment-body-wrap { flex: 1; min-width: 0; }
.kr-comment-meta { display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; font-size: 12px; }
.kr-comment-author { font-weight: 500; color: var(--ink); }
.kr-comment-time { color: var(--ink-3); font-size: 12px; }
.kr-comment-body { font-size: 14px; color: var(--ink); line-height: 1.45; white-space: pre-wrap; overflow-wrap: break-word; }
.kr-comment-delete {
  color: var(--ink-3);
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s var(--ease), background 0.15s var(--ease);
  flex-shrink: 0;
}
.kr-comment:hover .kr-comment-delete { opacity: 1; }
.kr-comment-delete:hover { color: var(--red); background: var(--red-bg); }

.kr-comment-form { display: flex; gap: 8px; margin-top: 4px; align-items: flex-end; }
.kr-comment-form textarea { flex: 1; min-height: 36px; max-height: 120px; padding: 8px 12px; font-size: 13px; }
.kr-comment-form button {
  padding: 7px 16px;
  background: var(--handling);
  color: #fff;
  border-radius: var(--pill);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s var(--ease);
}
.kr-comment-form button:hover { background: var(--handling-hover); }
.kr-comment-form button:disabled { opacity: 0.5; cursor: not-allowed; }

/* ====== DRA OCH SLÄPP ====== */
.obj-card[draggable="true"] { cursor: grab; }
.obj-card[draggable="true"]:active { cursor: grabbing; }
.obj-card.dragging { opacity: 0.4; }

.kr-remove {
  color: var(--ink-3);
  width: 24px; height: 24px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.15s var(--ease), background 0.15s var(--ease);
  flex-shrink: 0;
}
.kr-item:hover .kr-remove { opacity: 1; }
.kr-remove:hover { color: var(--red); background: var(--red-bg); }

.add-kr {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  margin-top: 6px;
  background: var(--fyll-2);
  border: 0.5px solid transparent;
  border-radius: var(--radius);
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.add-kr:focus-within { background: var(--paper); border-color: var(--handling); box-shadow: var(--ring); }
.add-kr .add-icon { color: var(--ink-3); font-size: 16px; line-height: 1; }
.add-kr input { flex: 1; font-size: 14px; color: var(--ink); }
.add-kr input::placeholder { color: var(--ink-3); }

.modal-footer {
  padding: 12px 28px;
  border-top: 0.5px solid var(--line);
  background: var(--paper);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.modal-footer .meta { font-size: 12px; color: var(--ink-3); }

/* ====== POPOVER (meny) ====== */
.popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-float);
  min-width: 240px;
  max-width: 320px;
  padding: 5px;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
  z-index: 60;
  max-height: 60vh;
  overflow-y: auto;
}
.popover.open { opacity: 1; transform: none; pointer-events: auto; }
.popover.right { left: auto; right: 0; }
.popover .pop-section { padding: 8px 10px 4px; font-size: 12px; color: var(--ink-2); }
.popover .pop-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  color: var(--ink);
  gap: 10px;
}
.popover .pop-item:hover { background: var(--fyll-2); }
.popover .pop-item.active { background: var(--handling-yta); color: var(--handling); font-weight: 500; }
.popover .pop-item .pop-meta { font-size: 12px; color: var(--ink-3); }
.popover .pop-item-actions { display: flex; gap: 2px; opacity: 0; transition: opacity 0.15s var(--ease); }
.popover .pop-item:hover .pop-item-actions { opacity: 1; }
.popover .pop-item-actions .btn-icon { width: 24px; height: 24px; color: var(--ink-3); }
.popover .pop-item-actions .btn-icon:hover { color: var(--ink); background: var(--fyll); }
.popover .pop-item-actions .btn-icon.danger:hover { color: var(--red); background: var(--red-bg); }
.popover .pop-divider { height: 0.5px; background: var(--line); margin: 4px 6px; }
.popover .pop-add {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: var(--radius-sm);
  font-size: 13px; cursor: pointer;
  color: var(--ink); width: 100%; text-align: left;
}
.popover .pop-add:hover { background: var(--fyll-2); }
.popover .pop-add .ico { color: var(--ink-2); }

/* ====== TOMT LÄGE ====== */
.empty-state { text-align: center; padding: 80px 20px; color: var(--ink-2); font-size: 15px; }
.empty-state h3 { color: var(--ink); margin-bottom: 6px; font-size: 20px; }
.empty-state .icon-big { font-size: 36px; margin-bottom: 16px; color: var(--ink-3); }

/* ====== TOAST ====== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: rgba(29, 29, 31, 0.92);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--pill);
  font-size: 13px;
  z-index: 200;
  opacity: 0;
  transition: opacity 0.25s var(--ease), transform 0.35s var(--ease-spring);
  pointer-events: none;
  max-width: 90vw;
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: var(--red); }
.toast.success { background: rgba(29, 29, 31, 0.92); }

/* ====== ADMIN ====== */
.admin-section { margin-bottom: 28px; }
.admin-section h3 { margin-bottom: 12px; }
.users-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--paper);
  border: 0.5px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.users-table th, .users-table td {
  text-align: left;
  padding: 10px 14px;
  font-size: 13px;
  border-bottom: 0.5px solid var(--line);
}
.users-table th { font-size: 12px; color: var(--ink-2); font-weight: 500; background: var(--paper); }
.users-table tr:last-child td { border-bottom: none; }
.users-table tbody tr:hover td { background: var(--fyll-2); }
.users-table .row-actions { text-align: right; white-space: nowrap; }
.users-table .row-actions .btn-icon { display: inline-flex; width: 28px; height: 28px; color: var(--ink-2); }
.users-table .row-actions .btn-icon:hover { background: var(--fyll); color: var(--ink); }
.users-table th.num-col, .users-table td.num-col {
  text-align: center;
  font-size: 12px;
  color: var(--ink-2);
  white-space: nowrap;
  padding-left: 8px;
  padding-right: 8px;
  font-variant-numeric: tabular-nums;
}
.users-table td.num-col.never { color: var(--ink-3); }
.users-table td.num-col strong { color: var(--ink); font-weight: 500; }

.form-grid { display: grid; gap: 16px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 13px; font-weight: 500; color: var(--ink); }
.form-row input, .form-row select, .form-row textarea { width: 100%; font-size: 14px; color: var(--ink); }
.form-row select { cursor: pointer; }
.form-hint { font-size: 12px; color: var(--ink-2); margin-top: 2px; line-height: 1.4; }

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 6px;
  padding: 6px;
  background: var(--surface-2);
  border-radius: var(--radius);
  max-height: 200px;
  overflow-y: auto;
}
.checkbox-grid label {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px;
  background: var(--paper);
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  color: var(--ink);
  font-weight: 400;
}
.checkbox-grid label:hover { background: var(--handling-yta); }
.checkbox-grid input[type="checkbox"] { width: 15px; height: 15px; }

/* ====== SCROLLBAR ====== */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--fyll-3); border-radius: var(--pill); border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-3); background-clip: content-box; }

/* ====== RESPONSIVT ====== */
@media (max-width: 880px) {
  .overview { grid-template-columns: 1fr 1fr; }
  .stat-card.feature { grid-column: 1 / -1; }
  .topbar-inner { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .selector-group { width: 100%; order: 2; }
  h1 { font-size: 24px; }
  .modal-head, .modal-body, .modal-footer { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 540px) {
  .overview { grid-template-columns: 1fr; }
  .stat-card.feature { grid-column: auto; }
  .page { padding: 24px 16px 60px; }
  .topbar-inner { padding-left: 16px; padding-right: 16px; gap: 10px; }
  .brand-mark .brand-tag { display: none; }
  .brand-mark { flex: 0 0 auto; }
  .brand-mark .brand-logo { height: 13px; }
  .topbar-actions { gap: 6px; margin-left: auto; }
  #export-btn span, #export-btn .ico + span + .ico { display: none; }
  #export-btn { width: 32px; height: 32px; padding: 0; }
  #user-name-short, #user-role-badge { display: none; }
  .user-pill { padding: 3px; }
  .tabs { display: flex; }
  .tab-btn { flex: 1; padding: 6px 10px; }
  .modal-overlay { padding: 12px; align-items: flex-end; }
}
@media (max-width: 768px) {
  .login-screen { flex-direction: column; }
  .login-hero { flex: 0 0 200px; min-height: 200px; }
  .login-side { flex: 1; padding: 32px 20px 40px; }
}

.ico { width: 15px; height: 15px; stroke-width: 1.5; stroke: currentColor; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ico-sm { width: 13px; height: 13px; }

.hidden { display: none !important; }

/* ====== LADDNING: skelett som skärps, aldrig en snurra ====== */
.skeleton {
  display: block;
  height: 12px;
  border-radius: var(--pill);
  background: var(--fyll);
  animation: jms-sharpen 900ms var(--ease-spring) infinite alternate;
}
@keyframes jms-sharpen {
  from { filter: blur(6px); opacity: 0.55; }
  to { filter: blur(0); opacity: 1; }
}
.spinner { display: none; }

.page-loading {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
}
.page-loading .skeleton-stack { width: min(360px, 80vw); display: flex; flex-direction: column; gap: 12px; }
.page-loading .skeleton:nth-child(1) { height: 22px; width: 55%; }
.page-loading .skeleton:nth-child(3) { width: 75%; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
