/* Workshop: the app library for jonabalos.com
   The desktop is a self-healing cutting mat: a real 1-inch grid (96 CSS px)
   with quarter-inch lines, a ruler along the top edge, and apps laid on it. */
:root {
  --mat: #1D4942; --mat-deep: #163A34; --mat-line: rgba(220, 245, 232, .07); --mat-major: rgba(220, 245, 232, .16);
  --bar: rgba(14, 38, 33, .86); --on-mat: #F3F6EF; --on-mat-soft: #B9D3C8;
  --laser: #F2A93B; --laser-ink: #2A1A04; --kraft: #CDAA74; --kraft-ink: #3A2A14;
  --paper: #FCFBF7; --ink: #1A2420; --ink-soft: #55625C; --rule: #E2E3DA; --danger: #B42318; --ok: #1E6B45;
  --wide: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --tile: 76px; --cell: 112px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--wide); font-variation-settings: "wdth" 100; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
:focus-visible { outline: 3px solid var(--laser); outline-offset: 3px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--paper); color: var(--ink); padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }
a { color: inherit; }
button { font: inherit; color: inherit; }

/* ---------- the desk ---------- */
body.desk {
  min-height: 100vh; min-height: 100dvh; color: var(--on-mat); overflow-x: hidden;
  background-color: var(--mat);
  background-image:
    linear-gradient(135deg, transparent calc(50% - .5px), rgba(220,245,232,.09) 50%, transparent calc(50% + .5px)),
    linear-gradient(var(--mat-major) 1px, transparent 1px), linear-gradient(90deg, var(--mat-major) 1px, transparent 1px),
    linear-gradient(var(--mat-line) 1px, transparent 1px), linear-gradient(90deg, var(--mat-line) 1px, transparent 1px),
    radial-gradient(ellipse 90% 70% at 40% 30%, #22564D 0%, var(--mat) 55%, var(--mat-deep) 100%);
  background-size: 100% 100%, 96px 96px, 96px 96px, 24px 24px, 24px 24px, 100% 100%;
  background-position: 0 0, 0 62px, 0 0, 0 62px, 0 0, 0 0;
  background-attachment: fixed;
}

/* menu bar, like the top of a desktop */
.menubar {
  position: sticky; top: 0; z-index: 20; height: 44px; display: flex; align-items: center; gap: 18px; padding: 0 14px 0 16px;
  background: var(--bar); -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(220,245,232,.12); font-size: 14px;
}
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; font-variation-settings: "wdth" 118; letter-spacing: .1px; font-size: 15px; white-space: nowrap; }
.brand img { display: block; }
.filters { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters button { border: 0; background: none; padding: 6px 10px; border-radius: 6px; font-weight: 600; color: var(--on-mat-soft); cursor: pointer; white-space: nowrap; }
.filters button:hover { color: var(--on-mat); background: rgba(220,245,232,.08); }
.filters button[aria-pressed="true"] { color: var(--on-mat); background: rgba(220,245,232,.14); }
.menubar-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search { position: relative; display: flex; align-items: center; }
.search svg { position: absolute; left: 9px; width: 15px; height: 15px; fill: none; stroke: var(--on-mat-soft); stroke-width: 1.8; stroke-linecap: round; pointer-events: none; }
.search input { width: 200px; height: 30px; padding: 0 28px 0 30px; border-radius: 7px; border: 1px solid rgba(220,245,232,.18); background: rgba(0,0,0,.22); color: var(--on-mat); font: inherit; font-size: 14px; }
.search input::placeholder { color: var(--on-mat-soft); }
.search input:focus { outline: none; border-color: var(--laser); background: rgba(0,0,0,.32); }
.search input::-webkit-search-cancel-button { filter: invert(1) opacity(.6); }
.search .hint { position: absolute; right: 7px; font: 600 11px/1 var(--wide); color: var(--on-mat-soft); border: 1px solid rgba(220,245,232,.25); border-radius: 4px; padding: 3px 5px; }
.search input:focus ~ .hint, .search input:not(:placeholder-shown) ~ .hint { display: none; }
.viewtoggle { width: 32px; height: 30px; display: grid; place-items: center; border-radius: 7px; border: 1px solid transparent; background: none; cursor: pointer; }
.viewtoggle svg { width: 17px; height: 17px; fill: none; stroke: var(--on-mat-soft); stroke-width: 1.8; stroke-linecap: round; }
.viewtoggle:hover, .viewtoggle[aria-pressed="true"] { background: rgba(220,245,232,.12); }
.viewtoggle[aria-pressed="true"] svg { stroke: var(--on-mat); }
.clock { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--on-mat); white-space: nowrap; min-width: 128px; text-align: right; }

/* the ruler along the top edge of the mat: numbered every inch */
.ruler {
  position: sticky; top: 44px; z-index: 10; height: 18px; overflow: hidden; pointer-events: none;
  background-color: rgba(14, 38, 33, .5);
  background-image: linear-gradient(90deg, rgba(220,245,232,.7) 1px, transparent 1px), linear-gradient(90deg, rgba(220,245,232,.45) 1px, transparent 1px), linear-gradient(90deg, rgba(220,245,232,.3) 1px, transparent 1px);
  background-size: 96px 18px, 48px 9px, 12px 5px; background-repeat: repeat-x; background-position: 0 0, 0 0, 0 0;
  border-bottom: 1px solid rgba(220,245,232,.12);
}
.ruler span { position: absolute; top: 3px; font: 600 10px/1 var(--wide); font-variation-settings: "wdth" 80; color: rgba(220,245,232,.75); transform: translateX(4px); }

/* ---------- the app icons ---------- */
.mat { position: relative; padding: 26px 24px 140px; min-height: calc(100vh - 62px); outline: none; }
.icons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, var(--cell)); gap: 18px 6px; align-content: start; max-width: 1120px; }
.icons li { display: contents; }
.app {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; width: var(--cell); padding: 8px 4px 6px;
  text-decoration: none; color: var(--on-mat); border-radius: 12px; cursor: default; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; user-select: none;
}
.app:focus { outline: none; }
.app .tile { position: relative; width: var(--tile); height: var(--tile); border-radius: 18px; transition: transform .12s ease; }
.app .tile img { display: block; width: 100%; height: 100%; border-radius: 18px; box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 6px 14px rgba(4, 18, 15, .45), 0 1px 2px rgba(4,18,15,.5); }
.app .label {
  max-width: 100%; padding: 2px 6px; border-radius: 5px; text-align: center; font-size: 13.5px; line-height: 1.25; font-weight: 600; font-variation-settings: "wdth" 88;
  text-shadow: 0 1px 2px rgba(0,0,0,.6); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere;
}
.app .tagline { display: none; }
.app:hover .tile { transform: translateY(-1px); }
.app.is-selected .label, .app:focus-visible .label { background: var(--laser); color: var(--laser-ink); text-shadow: none; }
.app:focus-visible .tile img { outline: 3px solid var(--laser); outline-offset: 3px; }
.app .run { position: absolute; bottom: -9px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--on-mat); opacity: 0; }
.app.is-running .run { opacity: .9; }
/* coming soon: a kraft tag tied to the corner */
.app.is-soon .tile img { filter: saturate(.35) brightness(.82); }
.app .soon { position: absolute; right: -10px; top: -6px; padding: 3px 7px 3px 9px; border-radius: 3px 6px 6px 3px; background: var(--kraft); color: var(--kraft-ink); font: 700 10.5px/1.2 var(--wide); font-variation-settings: "wdth" 85; transform: rotate(8deg); box-shadow: 0 2px 4px rgba(0,0,0,.35); }
.app .soon::before { content: ""; position: absolute; left: 3px; top: 50%; width: 3px; height: 3px; margin-top: -1.5px; border-radius: 50%; background: var(--kraft-ink); opacity: .6; }
/* launch: one small bounce when an app opens */
.app.is-launching .tile { animation: launch .5s cubic-bezier(.3, 0, .3, 1); }
@keyframes launch { 0% { transform: translateY(0); } 35% { transform: translateY(-14px); } 60% { transform: translateY(0); } 78% { transform: translateY(-5px); } 100% { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .app.is-launching .tile { animation: none; } .app .tile { transition: none; } }

/* list view: name and what it makes, side by side */
.desk.is-list .icons { grid-template-columns: 1fr; gap: 4px; max-width: 760px; }
.desk.is-list .app { flex-direction: row; width: 100%; gap: 14px; padding: 8px 10px; align-items: center; text-align: left; background: rgba(10, 30, 26, .35); }
.desk.is-list .app .tile, .desk.is-list .app .tile img { width: 48px; height: 48px; border-radius: 12px; }
.desk.is-list .app .label { text-align: left; font-size: 15.5px; -webkit-line-clamp: 1; padding: 0; background: none !important; color: var(--on-mat) !important; text-shadow: none; }
.desk.is-list .app .words { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.desk.is-list .app .tagline { display: block; font-size: 14px; color: var(--on-mat-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.desk.is-list .app.is-selected, .desk.is-list .app:focus-visible { box-shadow: inset 0 0 0 2px var(--laser); }
.desk.is-list .app .soon { right: auto; left: 34px; top: -4px; }
.desk.is-list .app .run { left: 4px; top: 50%; bottom: auto; margin: -2.5px 0 0; }
.words { display: contents; }

.empty { max-width: 460px; font-size: 16px; line-height: 1.5; color: var(--on-mat); }
.empty button { border: 0; background: none; color: var(--laser); font-weight: 700; text-decoration: underline; cursor: pointer; padding: 0; }

/* hover card: what an app makes, without opening it */
.peek { position: fixed; z-index: 30; max-width: 260px; padding: 9px 11px; border-radius: 9px; background: var(--paper); color: var(--ink); font-size: 13.5px; line-height: 1.4; box-shadow: 0 10px 28px rgba(0,0,0,.35); pointer-events: none; }
.peek b { display: block; font-variation-settings: "wdth" 110; font-weight: 750; }

/* the sticky note on the mat */
.sticky {
  position: absolute; right: 28px; bottom: 112px; width: 280px; padding: 18px 18px 14px; background: #FFF4C9; color: #2D2612;
  font-size: 14px; line-height: 1.5; transform: rotate(-1.6deg); box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 12px 24px rgba(0,0,0,.32);
}
.sticky::before { content: ""; position: absolute; left: 50%; top: -9px; width: 74px; height: 20px; margin-left: -37px; background: rgba(255,255,255,.45); transform: rotate(2deg); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.sticky h2 { margin: 0 0 6px; font-size: 17px; font-weight: 780; font-variation-settings: "wdth" 112; }
.sticky p { margin: 0 0 8px; }
.sticky-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px !important; }
.sticky-links a { color: #6B4A00; font-weight: 700; }

/* the dock: recently opened apps */
.dock { position: fixed; left: 50%; bottom: 14px; z-index: 15; transform: translateX(-50%); padding: 8px 10px; border-radius: 18px; background: rgba(14, 38, 33, .72); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); border: 1px solid rgba(220,245,232,.16); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.dock ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.dock .app { width: auto; padding: 2px 2px 8px; }
.dock .app .tile, .dock .app .tile img { width: 50px; height: 50px; border-radius: 12px; }
.dock .app .label { display: none; }
.dock .app .run { bottom: 0; }
.dock .app .soon { display: none; }

/* right-click menu */
.menu { position: fixed; z-index: 40; min-width: 190px; padding: 5px; border-radius: 9px; background: rgba(252, 251, 247, .97); color: var(--ink); box-shadow: 0 14px 34px rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.06); }
.menu button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 7px 10px; border-radius: 6px; font-size: 14px; cursor: pointer; }
.menu button:hover, .menu button:focus-visible { background: var(--laser); color: var(--laser-ink); outline: none; }
.menu button[disabled] { opacity: .4; pointer-events: none; }

/* get info */
.info { width: min(460px, calc(100vw - 32px)); padding: 22px 22px 20px; border: 0; border-radius: 16px; background: var(--paper); color: var(--ink); box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.info::backdrop { background: rgba(8, 22, 19, .55); }
.info-close { position: absolute; right: 10px; top: 8px; margin: 0; }
.info-close button { width: 34px; height: 34px; border: 0; border-radius: 8px; background: none; font-size: 24px; line-height: 1; color: var(--ink-soft); cursor: pointer; }
.info-close button:hover { background: #EFEEE6; color: var(--ink); }
.info-head { display: flex; gap: 16px; align-items: center; padding-right: 28px; }
.info-head img { flex: none; border-radius: 17px; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.info-head h2 { margin: 0; font-size: 24px; line-height: 1.15; font-weight: 800; font-variation-settings: "wdth" 115; }
.info-head p { margin: 4px 0 0; color: var(--ink-soft); font-size: 15px; line-height: 1.4; }
.info-desc { margin: 16px 0 0; font-size: 15.5px; line-height: 1.55; }
.info-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 16px 0 0; padding: 12px 0 0; border-top: 1px solid var(--rule); font-size: 14px; }
.info-facts dt { color: var(--ink-soft); }
.info-facts dd { margin: 0; overflow-wrap: anywhere; }
.info-actions { display: flex; gap: 10px; margin-top: 18px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 10px; border: 0; background: var(--mat); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; }
.btn:hover { background: #24584F; color: #fff; }
.btn-quiet { background: #ECEBE3; color: var(--ink); }
.btn-quiet:hover { background: #E1E0D6; color: var(--ink); }
.btn[aria-disabled="true"] { background: var(--kraft); color: var(--kraft-ink); pointer-events: none; }

.toast { position: fixed; left: 50%; bottom: 96px; z-index: 50; transform: translate(-50%, 12px); padding: 9px 14px; border-radius: 9px; background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 600; box-shadow: 0 10px 26px rgba(0,0,0,.35); opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- phones and small tablets: a home screen ---------- */
@media (max-width: 899px) {
  .clock { display: none; }
  .search input { width: 150px; }
}
@media (max-width: 640px) {
  :root { --tile: 62px; --cell: 25%; }
  .menubar { gap: 10px; padding: 0 10px 0 12px; }
  .filters { position: fixed; left: 0; right: 0; top: 44px; height: 40px; align-items: center; padding: 0 8px; background: var(--bar); border-bottom: 1px solid rgba(220,245,232,.12); }
  .ruler { display: none; }
  .search input { width: 128px; }
  .search .hint { display: none; }
  .mat { padding: 58px 8px 150px; }
  .icons { grid-template-columns: repeat(4, 1fr); gap: 16px 0; }
  .app { width: 100%; padding: 6px 2px; }
  .app .label { font-size: 12.5px; }
  .desk.is-list .icons { grid-template-columns: 1fr; }
  .sticky { position: relative; right: auto; bottom: auto; width: auto; max-width: 420px; margin: 34px 8px 0; transform: rotate(-.8deg); }
  .dock { bottom: max(10px, env(safe-area-inset-bottom)); }
  .dock .app .tile, .dock .app .tile img { width: 46px; height: 46px; }
  .info { margin: auto auto 0; width: 100vw; max-width: none; border-radius: 18px 18px 0 0; padding-bottom: max(20px, env(safe-area-inset-bottom)); }
}
@media (min-width: 641px) and (max-height: 640px) { .sticky { position: relative; right: auto; bottom: auto; margin: 40px 0 0 auto; } }

/* ---------- plain pages: coming soon, not found, privacy, sign in ---------- */
body.page { min-height: 100vh; background: var(--mat); background-image: linear-gradient(var(--mat-line) 1px, transparent 1px), linear-gradient(90deg, var(--mat-line) 1px, transparent 1px); background-size: 24px 24px; padding: 8vh 16px 40px; }
.note { max-width: 560px; margin: 0 auto; padding: 30px 30px 26px; background: var(--paper); color: var(--ink); border-radius: 14px; box-shadow: 0 18px 40px rgba(0,0,0,.35); font-size: 16px; line-height: 1.6; }
.note h1 { margin: 6px 0 10px; font-size: 28px; line-height: 1.15; font-weight: 800; font-variation-settings: "wdth" 115; }
.note h2 { margin: 24px 0 6px; font-size: 18px; font-variation-settings: "wdth" 110; }
.note .lead { font-size: 18px; color: var(--ink-soft); margin-top: 0; }
.note-icon { display: block; border-radius: 20px; box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.note a:not(.btn) { color: #1E6B5C; font-weight: 700; }
.note label { display: block; font-weight: 700; margin: 16px 0 6px; }
.note input[type=password] { width: 100%; font: inherit; font-size: 16px; padding: 11px 12px; border: 1.5px solid var(--rule); border-radius: 10px; background: #fff; }
.note input[type=password]:focus { outline: none; border-color: var(--mat); box-shadow: 0 0 0 3px rgba(29, 73, 66, .2); }
.note .err { color: var(--danger); font-weight: 700; min-height: 1.5em; margin: 10px 0 0; }

/* ---------- admin ---------- */
body.admin { background: #F3F3EE; color: var(--ink); font-size: 15px; line-height: 1.5; }
.adm-bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 52px; padding: 0 18px; background: var(--mat); color: var(--on-mat); }
.adm-bar nav { display: flex; align-items: center; gap: 6px; }
.adm-bar nav a, .adm-bar nav button { white-space: nowrap; color: var(--on-mat); background: none; border: 0; padding: 7px 10px; border-radius: 7px; font-weight: 600; text-decoration: none; cursor: pointer; font-size: 14px; }
.adm-bar nav a:hover, .adm-bar nav button:hover { background: rgba(220,245,232,.12); }
.adm { max-width: 1040px; margin: 0 auto; padding: 26px 18px 80px; }
.adm h1 { margin: 0 0 6px; font-size: 30px; font-weight: 800; font-variation-settings: "wdth" 115; }
.adm h2 { font-size: 19px; font-variation-settings: "wdth" 110; margin: 0 0 6px; }
.adm code { font-size: 13.5px; background: #E6E7DF; padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.adm-drop { display: grid; grid-template-columns: 1fr 260px; gap: 28px; align-items: start; }
.adm-drop p { margin: 0 0 8px; max-width: 64ch; }
.adm-path { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.adm-side { background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; padding: 14px; }
.adm-side label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.adm select, .adm-dialog select, .adm-dialog input:not([type=file]), .row-edit input, .row-edit textarea, .row-edit select { width: 100%; font: inherit; font-size: 15px; padding: 8px 10px; border: 1.5px solid #D5D6CC; border-radius: 8px; background: #fff; color: var(--ink); }
.adm-add { display: grid; gap: 8px; margin-top: 14px; }
.adm-add .btn { width: 100%; min-height: 38px; font-size: 14px; }
.linkbtn { border: 0; background: none; padding: 0; color: #1E6B5C; font-weight: 700; text-decoration: underline; cursor: pointer; font-size: 14px; }
.adm-msg { min-height: 1.5em; margin: 16px 0 8px; font-weight: 700; }
.adm-msg.is-err { color: var(--danger); }
.adm-msg.is-ok { color: var(--ok); }
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.row { background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; }
.row.is-soon { background: #FAF6EC; }
.row-main { display: grid; grid-template-columns: 34px 56px minmax(0, 1fr) 150px auto; gap: 14px; align-items: center; padding: 12px 14px; }
.row-order { display: grid; gap: 2px; }
.row-order button { width: 30px; height: 24px; border: 1px solid #D5D6CC; border-radius: 6px; background: #fff; cursor: pointer; font-size: 12px; line-height: 1; color: var(--ink-soft); }
.row-order button:hover:not([disabled]) { border-color: var(--mat); color: var(--ink); }
.row-order button[disabled] { opacity: .35; cursor: default; }
.row-icon { width: 56px; height: 56px; border-radius: 13px; box-shadow: 0 2px 6px rgba(0,0,0,.16); }
.row-name { font-weight: 750; font-size: 17px; font-variation-settings: "wdth" 108; }
.row-meta { color: var(--ink-soft); font-size: 13.5px; overflow-wrap: anywhere; white-space: pre-wrap; }
.row-tag { margin-top: 2px; font-size: 14px; }
/* the Live switch */
.live { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.live input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.live .sw { flex: none; position: relative; width: 44px; height: 26px; border-radius: 13px; background: #C9C6B8; transition: background .15s; }
.live .sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.live input:checked + .sw { background: var(--ok); }
.live input:checked + .sw::after { transform: translateX(18px); }
.live input:focus-visible + .sw { outline: 3px solid var(--laser); outline-offset: 2px; }
.live input:disabled + .sw { opacity: .45; }
.live b { display: block; font-size: 14px; }
.live small { display: block; color: var(--ink-soft); font-size: 12.5px; line-height: 1.3; }
.row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.row-actions a, .row-actions button { border: 1px solid #D5D6CC; background: #fff; color: var(--ink); border-radius: 7px; padding: 6px 10px; font-size: 13.5px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.row-actions a:hover, .row-actions button:hover { border-color: var(--mat); }
.row-actions [aria-expanded="true"] { background: var(--mat); color: #fff; border-color: var(--mat); }
.row-panel { border-top: 1px solid var(--rule); padding: 14px 16px 16px 118px; }
.row-edit { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.row-edit label { font-weight: 700; font-size: 13.5px; display: block; margin-bottom: 3px; }
.row-edit .full { grid-column: 1 / -1; }
.row-edit textarea { min-height: 76px; resize: vertical; }
.row-edit .hint { color: var(--ink-soft); font-size: 13px; margin: 2px 0 0; }
.row-edit .colorpick { display: flex; gap: 8px; align-items: center; }
.row-edit .colorpick input[type=color] { width: 44px; height: 38px; padding: 2px; border: 1.5px solid #D5D6CC; border-radius: 8px; background: #fff; }
.row-edit-actions { grid-column: 1 / -1; display: flex; gap: 8px; }
.row-edit-actions .btn { min-height: 38px; font-size: 14px; }
.versions { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.versions li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 7px 10px; border-radius: 8px; background: #F1F1EA; font-size: 14px; }
.versions li.is-current { background: #E3F0E8; }
.versions .v-when { flex: 1 1 260px; white-space: pre-wrap; }
.versions .v-cur { font-weight: 700; color: var(--ok); }
.versions button, .versions a { border: 1px solid #D5D6CC; background: #fff; border-radius: 7px; padding: 4px 9px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink); text-decoration: none; }
.versions button.is-confirm { background: var(--laser); border-color: var(--laser); color: var(--laser-ink); }
.adm-removed { margin-top: 30px; padding: 16px; border: 1px dashed #C9C6B8; border-radius: 12px; }
.adm-removed ul { margin: 8px 0 0; padding-left: 18px; }
.adm-dialog h2 { margin: 0 0 6px; font-size: 22px; font-weight: 800; font-variation-settings: "wdth" 112; }
.adm-dialog label { display: block; font-weight: 700; font-size: 14px; margin: 12px 0 4px; }
.adm-dialog .err { color: var(--danger); font-weight: 700; min-height: 1.4em; margin: 8px 0 0; }
.adm-dialog p { margin: 0 0 6px; }
@media (max-width: 820px) {
  .adm-drop { grid-template-columns: 1fr; }
  .row-main { grid-template-columns: 34px 48px minmax(0, 1fr); }
  .row-icon { width: 48px; height: 48px; }
  .row-main .live { grid-column: 2 / -1; }
  .row-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .row-panel { padding-left: 16px; }
  .row-edit { grid-template-columns: 1fr; }
}
