/* Mooring page: the app's palette and its mocks (main window, connection tile, Finder, menu bar
   panel, New Connection sheet, trust sheet, connection form). The harbor itself (hero berth, scene,
   sea band, finale) is in harbor.css. Shared sections come from product.css, the desktop chrome from
   mac-mocks.css. */

/* The app's own colours: harbor blue, rope gold. --q is one point of a mock: 1px, except where a
   whole window is scaled to its column. */
.hue-moor {
  --q: 1px;
  --harbor-top: #1F66CC; --harbor-bottom: #0E3F96; --harbor-ink: #0E3F96;
  --sea-near: #0C3789; --sea-deep: #092C72;
  --on-harbor: #FFFFFF; --on-harbor-soft: rgba(255, 255, 255, 0.92); --on-harbor-fill: rgba(255, 255, 255, 0.17); --on-harbor-edge: rgba(255, 255, 255, 0.55);
  --harbor-mark: #FFE9C4; --quay: rgba(255, 255, 255, 0.16); --quay-lip: rgba(255, 255, 255, 0.55);
  --glass: linear-gradient(165deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.10)); --glass-edge: rgba(255, 255, 255, 0.36);
  --rope: #B9801F; --rope-hi: #E2B565;
  --tl-close: #FF5F57; --tl-min: #FEBC2E; --tl-zoom: #28C840;
  --win-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.22), 0 18px 48px rgba(6, 22, 60, 0.36);
}
.hue-moor .mock {
  --m-bg: #EEF1F6; --m-solid: #FFFFFF; --m-fg: #141A24; --m-muted: #586273;
  --m-line: rgba(20, 40, 80, 0.10); --m-edge: rgba(20, 40, 80, 0.14); --m-dash: rgba(20, 40, 80, 0.30);
  --m-disc: #E8ECF2; --m-badge: #E1E9F7; --m-accent: #1F66CC; --m-accent-text: #1A5AB8;
  --f-side: #E4E8EF; --f-sel: rgba(20, 40, 80, 0.10); --f-stripe: rgba(20, 40, 80, 0.035);
  color: var(--m-fg);
}
@media (prefers-color-scheme: dark) {
  .hue-moor {
    --harbor-top: #1B2C4A; --harbor-bottom: #0A1222; --harbor-ink: #0A1222;
    --sea-near: #080E1B; --sea-deep: #05090F; --quay: rgba(255, 255, 255, 0.08); --quay-lip: rgba(255, 255, 255, 0.36);
    --glass: linear-gradient(165deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.03)); --glass-edge: rgba(255, 255, 255, 0.18);
    --rope: #E0B062; --rope-hi: #F3D9A8;
    --win-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.16), 0 18px 48px rgba(0, 0, 0, 0.5);
  }
  .hue-moor .mock {
    --m-bg: #12151B; --m-solid: #20242C; --m-fg: #F1F4F8; --m-muted: #A3ACBA;
    --m-line: rgba(255, 255, 255, 0.10); --m-edge: rgba(255, 255, 255, 0.14); --m-dash: rgba(255, 255, 255, 0.30);
    --m-disc: #2D323C; --m-badge: #26303F; --m-accent: #2A72DE; --m-accent-text: #6FAEFF;
    --f-side: #1A1E25; --f-sel: rgba(255, 255, 255, 0.10); --f-stripe: rgba(255, 255, 255, 0.035);
  }
}
/* A sentence that breaks as one piece where the line allows it. */
.ib { display: inline-block; }

/* ---------- Glyphs: SF Symbols as the app uses them, rendered to masks so they take the text colour ---------- */
.mi { flex: none; display: block; width: calc(16 * var(--q)); height: calc(16 * var(--q)); background: currentColor; -webkit-mask: var(--sf) center / contain no-repeat; mask: var(--sf) center / contain no-repeat; }
.sf-mount { --sf: url(img/sf/externaldrive.connected.to.line.below.png); } .sf-eject { --sf: url(img/sf/eject.png); } .sf-refresh { --sf: url(img/sf/arrow.clockwise.png); }
.sf-sync { --sf: url(img/sf/arrow.triangle.2.circlepath.png); } .sf-folder { --sf: url(img/sf/folder.png); } .sf-doc { --sf: url(img/sf/doc.png); }
.sf-edit { --sf: url(img/sf/square.and.pencil.png); } .sf-trash { --sf: url(img/sf/trash.png); } .sf-ok { --sf: url(img/sf/checkmark.circle.fill.png); }
.sf-circle { --sf: url(img/sf/circle.png); } .sf-check { --sf: url(img/sf/checkmark.png); } .sf-search { --sf: url(img/sf/magnifyingglass.png); }
.sf-plus { --sf: url(img/sf/plus.png); } .sf-updown { --sf: url(img/sf/chevron.up.chevron.down.png); } .sf-back { --sf: url(img/sf/chevron.left.png); }
.sf-fwd { --sf: url(img/sf/chevron.right.png); } .sf-puzzle { --sf: url(img/sf/puzzlepiece.extension.png); } .sf-hd { --sf: url(img/sf/internaldrive.png); }
.sf-ext { --sf: url(img/sf/externaldrive.png); } .sf-clock { --sf: url(img/sf/clock.png); } .sf-desktop { --sf: url(img/sf/menubar.dock.rectangle.png); }
.sf-down { --sf: url(img/sf/arrow.down.circle.png); } .sf-list { --sf: url(img/sf/list.bullet.png); }
/* The rope, as the app draws it: a gold band and, over it, a lighter stroke in round-capped dashes
   that reads as the twist (3 and 2.5 points, dashes 2 and 3, on the app's 37-point outline; here
   the outline is 39.6 units, 139 long). The ring is drawn inside <symbol>, so its state arrives
   through inherited variables: --rope-out is the share of the outline that is wound; the rest is
   covered in the tile's own colour over a hairline that shows the way still to go. */
.rope-a { fill: none; stroke: var(--rope); stroke-width: 3.2; stroke-linecap: round; }
.rope-b { fill: none; stroke: var(--rope-hi); stroke-width: 2.7; stroke-linecap: round; stroke-dasharray: 2.14 3.21; }
.rope-c { fill: none; stroke: var(--rope-cover, none); stroke-width: 4.8; stroke-dasharray: 139 139; stroke-dashoffset: calc(var(--rope-out, 1) * -139px); }
.rope-t { fill: none; stroke: var(--rope-track, none); stroke-width: 1; }
.lights { display: flex; gap: calc(7 * var(--q)); }
.lights i { width: calc(11 * var(--q)); height: calc(11 * var(--q)); border-radius: 50%; background: var(--tl-close); }
.lights i:nth-child(2) { background: var(--tl-min); }
.lights i:nth-child(3) { background: var(--tl-zoom); }
/* The menu bar item is the app's template glyph: the bollard with a rope turn. */
.mb-glyph { flex: none; width: 17px; height: 17px; }

/* ---------- Main window ---------- */
/* Drawn on a 560-point window that scales with its column; a narrow column gets a 360-point window
   with the tiles in one column and a smaller bollard that stays clear of the trial chip. Header as in the app (120 points): lights top left, search and add
   top right, title and summary bottom left, the bollard down to the header's bottom edge, the trial
   chip bottom right. */
.tile-art.fit { container-type: inline-size; }
.mwin { --q: calc(100cqw / 560); width: 100%; border-radius: calc(13 * var(--q)); box-shadow: var(--win-shadow); min-width: 0; font-size: calc(13 * var(--q)); text-align: left; }
.mw-head { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto minmax(calc(26 * var(--q)), 1fr) auto auto; column-gap: calc(12 * var(--q)); min-height: calc(120 * var(--q)); padding: calc(12 * var(--q)) calc(14 * var(--q)) calc(14 * var(--q)) calc(16 * var(--q)); border-radius: calc(13 * var(--q)) calc(13 * var(--q)) 0 0; background: linear-gradient(180deg, var(--harbor-top), var(--harbor-bottom)); color: var(--on-harbor); overflow: hidden; }
.mw-head .lights { grid-area: 1 / 1; align-self: center; }
.mw-tools { grid-area: 1 / 2; display: flex; align-items: center; gap: calc(8 * var(--q)); }
.mw-search { display: inline-flex; align-items: center; width: calc(148 * var(--q)); height: calc(26 * var(--q)); padding: 0 calc(8 * var(--q)); border-radius: 999px; background: var(--on-harbor-fill); box-shadow: inset 0 0 0 calc(1 * var(--q)) var(--on-harbor-edge); color: var(--on-harbor-soft); }
.mw-search .mi, .mw-add .mi { width: calc(13 * var(--q)); height: calc(13 * var(--q)); }
.mw-add { display: grid; place-items: center; width: calc(26 * var(--q)); height: calc(26 * var(--q)); border-radius: 50%; background: var(--on-harbor); color: var(--harbor-top); }
.mw-title { position: relative; grid-area: 3 / 1; font-size: calc(26 * var(--q)); font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; }
.mw-sum { position: relative; grid-area: 4 / 1; font-size: calc(12.5 * var(--q)); color: var(--on-harbor-soft); white-space: nowrap; }
.mw-chip { position: relative; grid-area: 4 / 2; align-self: end; justify-self: end; display: inline-flex; align-items: center; height: calc(22 * var(--q)); padding: 0 calc(10 * var(--q)); border-radius: 999px; background: var(--on-harbor-fill); box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.3); color: var(--on-harbor); font-size: calc(11.5 * var(--q)); font-weight: 600; white-space: nowrap; }
.mw-bollard { position: absolute; left: 50%; bottom: calc(-10 * var(--q)); width: calc(124 * var(--q)); height: calc(124 * var(--q)); object-fit: contain; }
/* Every band's bollard: the rope fades in from the left edge of the art, as the app's ropeFade mask
   (clear at 2 %, opaque at 34 %, HarborHeaderView / HarborBandBackdrop / MenuBarBand). */
.mw-bollard, .nc-art, .mp-band img { -webkit-mask-image: linear-gradient(90deg, transparent 2%, #000 34%); mask-image: linear-gradient(90deg, transparent 2%, #000 34%); }
.mw-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(12 * var(--q)); padding: calc(14 * var(--q)) calc(14 * var(--q)) calc(34 * var(--q)); border-radius: 0 0 calc(13 * var(--q)) calc(13 * var(--q)); background: var(--m-bg); }
@container (max-width: 430px) {
  .mwin { --q: calc(100cqw / 360); }
  .mw-body { grid-template-columns: minmax(0, 1fr); padding-bottom: calc(14 * var(--q)); }
  .mw-bollard { left: calc(112 * var(--q)); bottom: calc(-8 * var(--q)); width: calc(90 * var(--q)); height: calc(90 * var(--q)); }
}

/* ---------- Connection tile ---------- */
.mt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "badge . disc" "name name name" "sub sub sub" "foot foot foot"; align-items: start; min-width: 0; padding: calc(14 * var(--q)); border-radius: calc(18 * var(--q)); background: var(--m-solid); box-shadow: 0 0 0 0.5px var(--m-edge), 0 1px 2px rgba(15, 30, 60, 0.05), 0 6px 16px rgba(15, 30, 60, 0.06); text-align: left; }
.pbw { grid-area: badge; position: relative; display: grid; place-items: center; flex: none; width: calc(44 * var(--q)); height: calc(44 * var(--q)); margin-bottom: calc(12 * var(--q)); border-radius: calc(12 * var(--q)); box-shadow: inset 0 0 0 1px var(--m-line); }
.pbw.roped { box-shadow: none; }
.pbw > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pb { display: block; width: calc(32 * var(--q)); height: calc(32 * var(--q)); border-radius: calc(9 * var(--q)); object-fit: contain; }
.disc { grid-area: disc; display: grid; place-items: center; flex: none; width: calc(34 * var(--q)); height: calc(34 * var(--q)); border-radius: 50%; background: var(--m-disc); color: var(--m-fg); }
/* Mount is a tinted disc with a blue glyph, as in the app; it is not a filled button. */
.disc.go { background: var(--m-badge); color: var(--m-accent-text); }
.mt-name { grid-area: name; font-size: calc(15 * var(--q)); font-weight: 700; letter-spacing: -0.1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* One fixed line box for both forms of the sub-line (text or mono path), so tiles stay level. */
.mt-sub { grid-area: sub; margin-top: calc(2 * var(--q)); height: calc(16 * var(--q)); font-size: calc(11.5 * var(--q)); line-height: calc(16 * var(--q)); color: var(--m-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-sub code, code.mt-sub { font-family: var(--mono); font-size: calc(11 * var(--q)); }
.mt-foot { grid-area: foot; display: flex; align-items: center; justify-content: space-between; gap: calc(8 * var(--q)); margin-top: calc(12 * var(--q)); padding-top: calc(10 * var(--q)); border-top: 1px solid var(--m-line); }
.mt-st { display: inline-flex; align-items: center; gap: calc(5 * var(--q)); min-width: 0; font-size: calc(11.5 * var(--q)); font-weight: 500; white-space: nowrap; }
.mt-st .mi { width: calc(13 * var(--q)); height: calc(13 * var(--q)); color: var(--m-muted); }
.mt-st .sf-ok, .mt-st .sf-sync { color: var(--rope); }
.mt-acts { display: flex; gap: calc(9 * var(--q)); color: var(--m-muted); }
.mt-acts .mi { width: calc(15 * var(--q)); height: calc(15 * var(--q)); }
.mt-acts .off { opacity: 0.3; }

/* ---------- Finder window ---------- */
.finder { display: grid; grid-template-columns: calc(160 * var(--q)) minmax(0, 1fr); border-radius: calc(12 * var(--q)); background: var(--m-solid); box-shadow: var(--win-shadow); overflow: hidden; font-size: calc(12.5 * var(--q)); text-align: left; }
.finder.still { width: min(430px, 100%); }
.finder.big { grid-template-columns: calc(172 * var(--q)) minmax(0, 1fr); height: calc(372 * var(--q)); font-size: calc(13 * var(--q)); }
.f-side { display: flex; flex-direction: column; gap: calc(2 * var(--q)); min-width: 0; padding: calc(12 * var(--q)) calc(8 * var(--q)); background: var(--f-side); }
.f-side .lights { margin: calc(2 * var(--q)) 0 calc(12 * var(--q)) calc(6 * var(--q)); }
.f-cap { padding: 0 calc(8 * var(--q)) calc(3 * var(--q)); font-size: calc(11 * var(--q)); font-weight: 600; color: var(--m-muted); }
.f-row + .f-cap { margin-top: calc(10 * var(--q)); }
.f-row { display: flex; align-items: center; gap: calc(7 * var(--q)); height: calc(26 * var(--q)); padding: 0 calc(6 * var(--q)) 0 calc(8 * var(--q)); border-radius: calc(7 * var(--q)); min-width: 0; }
.f-row.cur { background: var(--f-sel); }
.f-row b { flex: 1; min-width: 0; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Sidebar glyphs are single-colour symbols in the accent, the volume's drive included, as in Finder. */
.f-row .mi { width: calc(17 * var(--q)); height: calc(15 * var(--q)); color: var(--m-accent-text); }
.f-row b + .mi { width: calc(12 * var(--q)); height: calc(12 * var(--q)); color: var(--m-muted); }
.f-main { display: flex; flex-direction: column; min-width: 0; }
.f-bar { display: flex; align-items: center; gap: calc(12 * var(--q)); height: calc(42 * var(--q)); padding: 0 calc(14 * var(--q)); border-bottom: 1px solid var(--m-line); color: var(--m-muted); }
.f-bar b { flex: 1; min-width: 0; color: var(--m-fg); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-bar .mi { width: calc(15 * var(--q)); height: calc(14 * var(--q)); }
.f-bar .sf-fwd { margin-left: calc(-2 * var(--q)); opacity: 0.4; }
.f-item { display: flex; align-items: center; gap: calc(8 * var(--q)); height: calc(24 * var(--q)); padding: 0 calc(12 * var(--q)); white-space: nowrap; }
.f-bar + .f-item { margin-top: calc(5 * var(--q)); }
.f-item:last-child { margin-bottom: calc(10 * var(--q)); }
.f-item .mi, .f-name .mi { color: var(--m-accent-text); }
.f-item .sf-doc, .f-name .sf-doc { color: var(--m-muted); }
/* The list view of the hero window: Name and Kind, striped rows down to the window's bottom edge. */
.f-cols, .f-line { display: grid; grid-template-columns: minmax(0, 1fr) calc(142 * var(--q)); align-items: center; column-gap: calc(10 * var(--q)); padding: 0 calc(14 * var(--q)); }
.f-cols { height: calc(24 * var(--q)); border-bottom: 1px solid var(--m-line); color: var(--m-muted); font-size: calc(11 * var(--q)); font-weight: 600; }
.f-line { height: calc(26 * var(--q)); }
.f-line:nth-child(odd) { background: var(--f-stripe); }
.f-name { display: flex; align-items: center; gap: calc(8 * var(--q)); min-width: 0; white-space: nowrap; }
.f-kind { color: var(--m-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-fill { flex: 1; background: repeating-linear-gradient(180deg, var(--f-stripe) 0 calc(26 * var(--q)), transparent calc(26 * var(--q)) calc(52 * var(--q))); }
@media (max-width: 560px) {
  /* The volume's name stays whole in the sidebar and in the toolbar. */
  .finder.big { grid-template-columns: calc(158 * var(--q)) minmax(0, 1fr); height: calc(300 * var(--q)); font-size: calc(12 * var(--q)); }
  .finder.big .f-cols, .finder.big .f-line { grid-template-columns: minmax(0, 1fr); }
  .finder.big .f-kind, .finder.big .sf-list, .finder.big .sf-fwd { display: none; }
}
@media (max-width: 440px) { .finder.still { --q: 0.88px; } }

/* ---------- Features: two equal halves. The New Connection sheet (.tall) stands beside the two
   stacked tiles (.stack) and is as tall as both: its art spans their rows down to the lower tile's
   art, so titles and copy stay level. Dense flow lets it start beside the first of them. ---------- */
.hue-moor .bento .tile-art { min-height: 200px; }
@media (min-width: 900px) {
  .hue-moor .bento { grid-auto-flow: dense; }
  .hue-moor .bento .tile { grid-column: span 6; }
  .hue-moor .bento .tile.stack { grid-column: 1 / span 6; }
  .hue-moor .bento .tile.tall { grid-column: 7 / span 6; grid-row: span 6; }
  .hue-moor .bento .tile.tall .tile-art { grid-row: span 4; }
}
.drives { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; }
.drives span { display: grid; justify-items: center; gap: 4px; font: 500 12px/1.3 var(--body); color: var(--ink); }

/* The New Connection sheet with its Type list open: the band, Name and Type, and the list the app
   draws under the pop-up (search, the ten S3 types, SFTP after a divider). */
.nc { width: min(360px, 100%); border-radius: 12px; background: var(--m-bg); box-shadow: 0 0 0 0.5px var(--m-edge), 0 10px 30px rgba(15, 30, 60, 0.18); overflow: hidden; text-align: left; }
.nc-band { position: relative; display: flex; align-items: center; gap: 10px; height: 64px; padding: 0 14px; background: linear-gradient(180deg, var(--harbor-top), var(--harbor-bottom)); color: var(--on-harbor); overflow: hidden; }
.nc-badge { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--m-solid); box-shadow: 0 0 0 1.5px var(--on-harbor-edge); }
.nc-badge img { width: 32px; height: 32px; border-radius: 8px; }
.nc-tt { position: relative; z-index: 1; display: grid; gap: 1px; min-width: 0; padding-right: 44px; }
.nc-tt b { font-size: 15px; font-weight: 600; } .nc-tt i { font-style: normal; }
.nc-tt span { font-size: 11px; color: var(--on-harbor-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nc-art { position: absolute; right: -22px; bottom: -30px; width: 88px; height: 88px; object-fit: contain; opacity: 0.9; }
.nc-card { display: grid; gap: 6px; margin: 12px 12px 0; padding: 9px 10px; border-radius: 10px; background: var(--m-solid); box-shadow: 0 0 0 0.5px var(--m-line); }
.nc-row { display: grid; grid-template-columns: var(--lab, 40px) minmax(0, 1fr); align-items: center; gap: 8px; font-size: 12px; }
.nc-lab { justify-self: end; color: var(--m-muted); }
.nc-field, .nc-pop { display: flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border-radius: 6px; background: var(--m-solid); box-shadow: 0 0 0 0.5px var(--m-edge), 0 0.5px 1.5px rgba(0, 0, 0, 0.08); }
/* A field shows its placeholder in the muted colour, a typed value (.on) in the text colour. */
.nc-field { color: var(--m-muted); white-space: nowrap; overflow: hidden; }
.nc-field.on { color: var(--m-fg); }
.nc-pop { box-shadow: 0 0 0 3px color-mix(in srgb, var(--m-accent) 45%, transparent), 0 0 0 0.5px var(--m-edge); }
.nc-pop img, .nc-opt img { flex: none; width: 16px; height: 16px; border-radius: 4px; }
.nc-pop b { flex: 1; font-weight: 500; }
.nc-pop .mi { width: 11px; height: 12px; color: var(--m-muted); }
.nc-list { position: relative; margin: 6px 12px 12px 70px; padding: 10px 0 5px; border-radius: 10px; background: var(--m-solid); box-shadow: 0 0 0 0.5px var(--m-edge), 0 12px 30px rgba(10, 25, 55, 0.24); }
.nc-search { display: flex; align-items: center; gap: 5px; height: 22px; margin: 0 10px 10px; padding: 0 7px; border-radius: 6px; background: var(--m-bg); box-shadow: inset 0 0 0 0.5px var(--m-edge); color: var(--m-muted); font-size: 12px; }
.nc-search .mi { width: 12px; height: 12px; }
.nc-opt { display: flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px 0 8px; font-size: 12px; white-space: nowrap; }
.nc-opt span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nc-chk { flex: none; display: block; width: 14px; height: 12px; color: var(--m-accent-text); }
.nc-opt.grp { position: relative; height: 33px; padding-top: 9px; }
.nc-opt.grp::before { content: ""; position: absolute; top: 4px; left: 10px; right: 10px; height: 1px; background: var(--m-line); }

.mpanel { width: min(340px, 100%); padding-bottom: 6px; border-radius: 14px; background: var(--m-solid); box-shadow: 0 0 0 0.5px var(--m-edge), 0 10px 30px rgba(15, 30, 60, 0.18); overflow: hidden; text-align: left; }
.mp-band { position: relative; display: flex; align-items: center; justify-content: space-between; height: 56px; margin-bottom: 4px; padding: 0 12px 0 14px; background: linear-gradient(180deg, var(--harbor-top), var(--harbor-bottom)); color: var(--on-harbor); overflow: hidden; }
.mp-band b { font-size: 16px; font-weight: 700; }
.mp-band img { position: absolute; left: 92px; bottom: -8px; width: 68px; height: 68px; object-fit: contain; }
.mp-row { display: flex; align-items: center; gap: 8px; padding: 7px 10px 7px 12px; }
.mp-row .pbw { width: 36px; height: 36px; margin: 0; border-radius: 10px; }
.mp-row .pb { width: 26px; height: 26px; border-radius: 7px; }
.mp-lab { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.mp-lab b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-lab .mt-st { font-weight: 400; color: var(--m-muted); }
.mp-row .disc { width: 28px; height: 28px; }
.mp-row .disc .mi { width: 14px; height: 14px; }
.mp-add { display: flex; align-items: center; gap: 8px; padding: 7px 14px; color: var(--m-accent-text); font-weight: 500; }
.mp-add .mi { width: 13px; height: 13px; }
.mp-rule { height: 1px; margin: 5px 12px; background: var(--m-line); }
.mp-cmd { display: flex; justify-content: space-between; padding: 5px 14px; }
.mp-cmd span { color: var(--m-muted); }
/* Phone: the panel is drawn a little smaller, so a status line stays whole beside its three buttons;
   the Type list reaches further left, so its longest name does. */
@media (max-width: 440px) {
  .mpanel { zoom: 0.88; }
  .nc-list { margin-left: 20px; }
  .nc-tt span { white-space: normal; line-height: 1.25; } /* two lines: the type, then the rest; no dot */
  .nc-sep { display: none; } .nc-rest { display: block; }
}

/* ---------- Trust sheet and connection form (the sea band) ---------- */
/* The host key alert as the app words it: host and port, algorithm, the first-time note, then the
   fingerprint in mono. One line where it fits; on a narrow card it breaks only after "SHA256:"
   (the <wbr>), never inside the key. */
.alert { display: grid; justify-items: center; gap: 10px; width: min(316px, 100%); padding: 20px 18px 18px; border-radius: 16px; background: var(--m-solid); box-shadow: var(--win-shadow); font-size: 11.5px; line-height: 1.4; text-align: center; }
.alert img { display: block; width: 56px; height: 56px; border-radius: 22.5%; }
.alert b { font-size: 13.5px; font-weight: 700; }
.alert span { text-wrap: balance; }
.alert code { font: 500 11px/1.45 var(--mono); }
.alert-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; margin-top: 6px; font-size: 13px; font-weight: 500; line-height: 28px; }
.alert-btns span { border-radius: 7px; background: var(--m-disc); }
.alert-btns .go { background: var(--m-accent); color: var(--on-harbor); }
/* The SFTP form's Server and Authentication groups, with the app's hint under the password. */
.form { --lab: 62px; display: grid; gap: 6px; width: min(316px, 100%); padding: 12px; border-radius: 16px; background: var(--m-bg); box-shadow: var(--win-shadow); font-size: 12px; text-align: left; }
.form .nc-card { margin: 0; }
.fm-cap { padding: 2px 4px 0; font-size: 11px; font-weight: 600; color: var(--m-muted); }
.nc-card + .fm-cap { margin-top: 6px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; height: 24px; padding: 2px; border-radius: 7px; background: var(--m-disc); line-height: 20px; text-align: center; }
.seg b { border-radius: 5px; background: var(--m-solid); box-shadow: 0 0.5px 1.5px rgba(0, 0, 0, 0.16); font-weight: 500; }
.fm-hint { font-size: 10.25px; color: var(--m-muted); white-space: nowrap; }
/* ---------- Local fits for shared sections. Side by side, the three rows of the Privacy and Requirements cards share tracks, so their hairlines are level. On a phone a requirement's term stands over its text and a price's note takes a row of its own under the unit, so neither breaks into a short last line. ---------- */
@media (min-width: 900px) { .hue-moor .perm { grid-row: span 5; } .hue-moor .perm dl, .hue-moor .facts { display: grid; grid-row: span 3; grid-template-rows: subgrid; align-self: stretch; } }
@media (max-width: 480px) { .hue-moor .pr-val + .pr-note { grid-area: 3 / 1 / auto / -1; } .hue-moor .perm dl div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
