:root {
  color-scheme: light;
  font-family: "Instrument Sans", system-ui, -apple-system, sans-serif;
  color: #171f27;
  background: #f2f4f3;
  font-synthesis: none;
  --ink: #171f27;
  --muted: #4b5c64;
  --line: #dce4e2;
  --green: #00654f;
  --nav: #17262a;
  --white: #fff;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; display: grid; grid-template-columns: 17rem minmax(0, 1fr); }
h1, h2, p, dl, dd { margin: 0; }

.sidebar {
  background: var(--nav);
  color: #e8f4ef;
  padding: 2rem 1.65rem 1.55rem;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.brand { display: flex; align-items: center; gap: .7rem; font-size: .95rem; font-weight: 720; letter-spacing: -.02em; }
.brand-mark, .panel-icon { display: grid; place-items: center; flex: 0 0 auto; }
.brand-mark { height: 2.1rem; width: 2.1rem; border: 1px solid #57716b; border-radius: .55rem; color: #b4ebd6; }
.lock-icon { display: block; position: relative; width: .85rem; height: .64rem; border: 1.5px solid currentColor; border-radius: .17rem; margin-top: .28rem; }
.lock-icon::before { content: ""; width: .53rem; height: .43rem; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); border: 1.5px solid currentColor; border-bottom: 0; border-radius: .35rem .35rem 0 0; }
.lock-icon::after { content: ""; position: absolute; top: .12rem; left: calc(50% - .055rem); width: .11rem; height: .24rem; background: currentColor; border-radius: .1rem; }

.source { border-top: 1px solid #3e5353; padding-top: 1.25rem; display: grid; gap: .48rem; }
.source-label { font-size: .77rem; color: #a7bdb8; }
#source-app { font-size: .9rem; font-weight: 650; overflow-wrap: anywhere; }

.sidebar-foot { margin-top: auto; border-top: 1px solid #3e5353; padding-top: 1rem; font-size: .8rem; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .38rem .55rem; }
.session-dot, .note-mark { display: inline-block; width: .42rem; height: .42rem; flex: 0 0 auto; border-radius: 50%; background: #73d1ae; }
.text-action { color: #bce9da; cursor: pointer; grid-column: 2; justify-self: start; display: inline-flex; align-items: center; min-height: 2rem; text-underline-offset: .2em; }
.text-action:hover { text-decoration: underline; }

main { padding: clamp(2.5rem, 10vh, 7.5rem) clamp(1.25rem, 6vw, 6.5rem) 4rem; }
.workspace { max-width: 46rem; }
.record-header { margin-bottom: 2rem; }
.reference { display: flex; align-items: baseline; flex-wrap: wrap; gap: .65rem; font-size: .79rem; margin-bottom: .9rem; color: var(--muted); }
#record { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .77rem; color: #294840; overflow-wrap: anywhere; }
h1 { text-wrap: balance; font-size: clamp(2.1rem, 5vw, 3.3rem); line-height: 1.06; font-weight: 740; letter-spacing: -.055em; }
#description { color: var(--muted); font-size: .99rem; line-height: 1.55; margin-top: .72rem; }
.panel { border: 1px solid var(--line); border-radius: 1rem; background: var(--white); overflow: hidden; }
.panel-head { padding: 1.3rem 1.5rem; display: flex; gap: .85rem; align-items: flex-start; background: #f9fbfa; }
.panel-icon { width: 2.55rem; height: 2.55rem; border-radius: .6rem; background: #e4f2ed; color: var(--green); }
.panel-icon[data-error] { background: #faeeeb; color: #923e2d; }
h2 { margin-top: .05rem; font-size: 1.05rem; line-height: 1.4; letter-spacing: -.02em; }
#panel-status { font-size: .87rem; color: var(--muted); line-height: 1.5; margin-top: .15rem; }
.panel-body { border-top: 1px solid var(--line); padding: 1.4rem 1.5rem; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; }
#value-section:not([hidden]) + .actions, #device-reference:not([hidden]) ~ .actions { margin-top: 1.15rem; }
.action { display: inline-flex; align-items: center; justify-content: center; padding: .62rem 1rem; min-height: 2.75rem; border: 1px solid transparent; border-radius: .5rem; font-size: .88rem; font-weight: 690; cursor: pointer; gap: .5rem; }
.primary-action { background: var(--green); color: var(--white); }
.primary-action:hover { background: #00513f; }
.secondary-action { color: #263f38; background: #fff; border-color: #cbdad5; }
.secondary-action:hover { background: #eff7f3; }
vault-action[aria-disabled="true"] { opacity: .67; cursor: wait; }
vault-action:focus-visible, vault-entry:focus-visible { outline: 2px solid #007c61; outline-offset: 3px; }
.sidebar vault-action:focus-visible { outline-color: #a6f1d5; }

.field-label { font-size: .82rem; font-weight: 720; margin-bottom: .45rem; }
.record-value, vault-entry { display: block; white-space: pre-wrap; overflow-wrap: anywhere; border: 1px solid #c7d9d2; background: #f6faf8; border-radius: .45rem; padding: .78rem .85rem; font-size: 1rem; line-height: 1.5; }
vault-entry { min-height: 5.75rem; max-height: 18rem; overflow: auto; background: var(--white); }
vault-entry:empty::before { content: "Enter the protected value…"; color: var(--muted); pointer-events: none; }
.device-details { display: grid; gap: .75rem; }
.device-details dt { font-size: .79rem; font-weight: 690; color: var(--muted); margin-bottom: .18rem; }
.device-details dd { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .77rem; overflow-wrap: anywhere; }
.note { display: flex; align-items: center; gap: .55rem; margin-top: 1.05rem; font-size: .8rem; color: var(--muted); line-height: 1.45; }
.note-mark { background: #527469; }

@media (max-width: 720px) {
  body { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .sidebar { padding: .85rem 1.2rem; gap: 1rem; }
  .source { border-top: 0; padding: 0; display: flex; flex-wrap: wrap; column-gap: .75rem; align-items: baseline; }
  .source > :first-child { display: none; }
  .sidebar-foot { border-top: 0; padding-top: 0; display: flex; flex-wrap: wrap; }
  .text-action { margin-left: auto; }
  main { padding: 2.15rem 1rem; }
  .record-header { margin-bottom: 1.35rem; }
  .panel-head, .panel-body { padding: 1rem; }
}


vault-action { touch-action: manipulation; }
.skip { position: absolute; top: .65rem; left: .65rem; padding: .65rem .85rem; background: var(--white); border-radius: .4rem; z-index: 1; transform: translateY(-160%); }
.skip:focus-visible { transform: none; }

:root {
  --paper: #fcfdfc;
  --subtle: #f0f5f2;
  --border-strong: #b8c9c2;
}
body { grid-template-columns: minmax(13rem, 16rem) minmax(0, 1fr); }
main { padding-top: clamp(2.2rem, 6vh, 4.25rem); padding-inline: clamp(1.25rem, 5vw, 5.5rem); }
.workspace { max-width: 70rem; margin-inline: auto; }
h1 { font-size: clamp(2rem, 4.1vw, 3.1rem); }
.panel { border-radius: .85rem; background: var(--paper); box-shadow: 0 6px 25px #182e2410; }
.panel-head { background: #f6faf8; align-items: center; }
.panel-title-group { flex: 1; min-width: 0; }
#header-lock { flex: 0 0 auto; }
.panel-body { padding: clamp(1rem, 3vw, 2rem); }
.record-value { padding: 0; border: 0; border-radius: 0; background: transparent; white-space: normal; }
.record-value > * + * { margin-top: 1.3rem; }
.literal-value { white-space: pre-wrap; background: var(--subtle); border: 1px solid var(--line); border-radius: .55rem; padding: 1rem; }
.document-heading { padding: .15rem 0 .95rem; border-bottom: 1px solid var(--line); }
.document-heading h3 { font-size: clamp(1.55rem, 3.2vw, 2.25rem); letter-spacing: -.045em; line-height: 1.13; margin: .3rem 0 0; overflow-wrap: anywhere; }
.markup-document [data-block="eyebrow"] { color: #315f52; font-size: .73rem; letter-spacing: .09em; font-weight: 750; text-transform: uppercase; }
.record-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(9rem, 100%), 1fr)); gap: .55rem 1rem; background: var(--subtle); border: 1px solid var(--line); border-radius: .55rem; padding: .8rem 1rem; }
.record-facts dt { color: var(--muted); font-size: .76rem; font-weight: 660; }
.record-facts dd { font-size: .92rem; font-weight: 680; overflow-wrap: anywhere; }
.comp-summary { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1rem; }
.comp-total { display: grid; align-content: center; gap: .32rem; padding: 1.2rem; background: #17352f; color: #edfaf2; border-radius: .55rem; }
.comp-total p, .comp-total span { font-size: .83rem; color: #c0dacf; }
.comp-total strong { font-size: clamp(1.3rem, 3.3vw, 2rem); letter-spacing: -.045em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.comp-summary .record-facts { grid-template-columns: 1fr; gap: .65rem; }
.comp-summary .record-facts > div + div { padding-top: .65rem; border-top: 1px solid var(--line); }
.comp-notes h4 { font-size: .86rem; margin: 0 0 .3rem; }
.comp-notes p { color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.editor-fields, .editor-body { display: grid; gap: 1.1rem; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.choices { display: flex; flex-wrap: wrap; gap: .35rem; }
.choice { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .4rem .75rem; border: 1px solid var(--border-strong); background: var(--white); border-radius: .42rem; color: #2b463e; font-size: .86rem; font-weight: 650; cursor: pointer; }
.choice:hover { background: var(--subtle); }
.choice[aria-pressed="true"] { border-color: #247760; background: #def0e8; color: #064e3e; }
.single-entry { min-height: 2.75rem; padding-block: .6rem; }
.source-entry { min-height: 7rem; }
.code-entry, .json-document, .markup-document code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.code-entry { font-size: .86rem; }
vault-entry:empty::before { content: attr(data-hint); }
.field-help { color: var(--muted); font-size: .82rem; line-height: 1.45; }
.file-zone { padding: 1rem; display: grid; justify-items: start; gap: .5rem; border: 1px dashed #7c9e91; border-radius: .55rem; background: var(--subtle); }
.file-name { font-weight: 690; overflow-wrap: anywhere; }
.json-document, .markup-document pre { background: #eef3f0; border-radius: .45rem; padding: .9rem 1rem; overflow: auto; border: 1px solid var(--line); font-size: .87rem; line-height: 1.55; }
.markup-document { background: white; border: 1px solid var(--line); border-top: .28rem solid #3a7d68; border-radius: .55rem; padding: clamp(1rem, 4vw, 3rem); color: #243833; line-height: 1.65; overflow-wrap: anywhere; }
.markup-document[data-layout="memo"] { border-top-color: #7a6651; background: #fcfbf8; }
.markup-document[data-layout="brief"] { border-top-color: #3c6780; background: #f9fcfd; }
.markup-document > * { max-width: 74ch; margin-inline: auto; }
.markup-document > * + *, .markup-document :is(article,section,div) > * + * { margin-top: 1em; }
.markup-document :is(h2,h3,h4,h5,h6) { color: #173a30; font-weight: 730; line-height: 1.2; letter-spacing: -.025em; margin-bottom: .2em; }
.markup-document :is(h2,h3) { font-size: clamp(1.3rem, 3.1vw, 1.9rem); }
.markup-document :is(ol,ul) { padding-inline-start: 1.55rem; }
.markup-document li + li { margin-top: .3rem; }
.markup-document :is(blockquote,[data-block="callout"]) { background: #ecf5f0; border-inline-start: .24rem solid #42806c; margin-inline: auto; padding: 1rem 1.15rem; border-radius: 0 .4rem .4rem 0; }
.markup-document [data-block="lead"] { font-size: 1.16rem; color: #385a50; }
.markup-document [data-block="fine-print"], .markup-document figcaption { font-size: .82rem; color: var(--muted); }
.markup-document [data-block="columns"] { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr)); gap: 1rem; }
.markup-document [data-block="columns"] > * { margin-top: 0; }
.markup-document [data-block="metric"] { background: #f1f5f2; border: 1px solid var(--line); border-radius: .45rem; padding: .8rem; }
.markup-document hr { border: 0; border-top: 1px solid var(--line); }
.markup-document figure { margin-block: 1rem; }
.document-table { overflow: auto; border: 1px solid var(--line); border-radius: .45rem; }
.document-table table { border-collapse: collapse; width: 100%; font-size: .88rem; text-align: start; }
.document-table :is(th,td) { padding: .65rem .8rem; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
.document-table th { background: #eff5f1; color: #234c40; }
.document-table tbody tr:last-child td { border-bottom: 0; }
.pdf-frame { background: #e9eeeb; border: 1px solid var(--line); border-radius: .55rem; overflow: hidden; }
.pdf-tools { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .4rem; border-bottom: 1px solid var(--line); background: #f8fbf9; padding: .55rem; }
.pdf-tools > div { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; }
.pdf-tools .action { padding-inline: .62rem; }
.pdf-tools [aria-disabled="true"] { cursor: default; }
.pdf-status { text-align: center; min-width: 3.1rem; font-size: .82rem; font-variant-numeric: tabular-nums; }
.pdf-scroll { overflow: auto; max-height: min(74vh, 64rem); padding: clamp(.5rem, 2vw, 1.4rem); }
.pdf-scroll canvas { display: block; width: 100%; max-width: 46rem; height: auto; margin: 0 auto; background: #fff; box-shadow: 0 1px 12px #18322a26; }
.pdf-scroll[data-zoom="0.75"] canvas { width: 75%; max-width: 34.5rem; }
.pdf-scroll[data-zoom="1.25"] canvas { width: 125%; max-width: 57.5rem; }
.pdf-scroll[data-zoom="1.5"] canvas { width: 150%; max-width: 69rem; }
.pdf-scroll[data-zoom="1.75"] canvas { width: 175%; max-width: 80.5rem; }
.pdf-scroll:focus-visible, .document-table:focus-visible { outline: 2px solid #007c61; outline-offset: -2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 720px) {
  body { grid-template-columns: minmax(0, 1fr); }
  main { padding-inline: 1rem; }
}
@media (max-width: 470px) {
  .panel-head { flex-wrap: wrap; }
  #header-lock { margin-inline-start: 3.4rem; }
  .field-row, .comp-summary { grid-template-columns: minmax(0, 1fr); }
  .pdf-tools { align-items: start; }
  .pdf-tools .action { padding-inline: .5rem; }
}

.document-control-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.document-caption { color: #315f52; font-size: .79rem; font-weight: 690; }
.document-status { display: inline-flex; align-items: center; min-height: 2rem; padding: .2rem .65rem; border: 1px solid #bdd3c9; border-radius: 1rem; background: #e9f3ed; color: #214f3c; font-size: .79rem; font-weight: 720; }
.document-status[data-status="reserved"] { background: #eaf2f7; color: #28566a; border-color: #bfd4e1; }
.document-status[data-status="cancelled"] { background: #f8eeec; color: #8a4034; border-color: #e6c7c1; }
.document-detail h4, .document-form-section h3 { margin: 0 0 .55rem; font-size: .98rem; letter-spacing: -.015em; }
.document-form-section { display: grid; gap: .85rem; }
.document-form-section + .document-form-section { border-top: 1px solid var(--line); padding-top: 1rem; }
.document-form-section h3 { margin-bottom: 0; }
