.encrypt-page { padding-block: 68px 72px; }
.tool-heading h1 { font-size: clamp(34px, 4.6vw, 54px); letter-spacing: -.045em; }
.tool-heading > p { margin-top: 16px; color: var(--muted); font-size: 19px; }
.tool-note { max-width: 760px; margin: 24px 0 36px; color: var(--muted); font-size: 14px; line-height: 1.85; }
.workbench { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: white; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 12px 36px #303e5708; }
.editor-pane { min-width: 0; padding: 22px; }
.result-pane { border-left: 1px solid var(--line); background: #fafbfe; }
.pane-heading { min-height: 44px; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.pane-heading h2 { font-size: 16px; font-weight: 600; letter-spacing: 0; }
.result-state { font-size: 12px; color: var(--muted); }
.drop-zone { border-radius: 10px; }
.drop-zone.dragging { outline: 3px solid var(--iris); outline-offset: 4px; }
.encrypt-page textarea { width: 100%; height: 330px; display: block; resize: vertical; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: 13px/1.8 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 12px; tab-size: 2; }
.encrypt-page textarea::placeholder { color: #707682; font-family: inherit; }
.output-wrap { position: relative; min-height: 330px; }
.empty-result { min-height: 330px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; text-align: center; color: var(--muted); font-size: 14px; }
.empty-result svg { width: 48px; height: 48px; fill: none; stroke: #8b90a4; stroke-width: 1.5; margin-bottom: 12px; }
.empty-result span { font-size: 12px; }
.pane-caption { margin-top: 14px; display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.encrypt-page button { font: inherit; font-size: 14px; cursor: pointer; min-height: 44px; border: 0; border-radius: 24px; padding: 10px 20px; }
.solid-button { background: var(--ink); color: white; font-weight: 550; }
.solid-button:hover:not(:disabled) { background: #434652; }
.quiet-button { background: transparent; color: var(--muted); }
.quiet-button:hover:not(:disabled) { background: #e9edf4; color: var(--ink); }
.encrypt-page button:disabled { cursor: default; opacity: .45; }
.encrypt-page :is(button, input, textarea):focus-visible { outline: 3px solid var(--iris); outline-offset: 3px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.processing-note { color: var(--muted); font-size: 12px; margin-left: auto; }
.status { min-height: 24px; margin-top: 15px; color: var(--muted); font-size: 14px; line-height: 1.75; overflow-wrap: anywhere; }
.status.error { color: #a4303a; }
.status.success { color: #236848; }
.metadata-panel { margin-top: 18px; }
.metadata-panel summary { font-size: 14px; padding-block: 16px; }
.metadata-note { color: var(--muted); font-size: 12px; line-height: 1.7; margin-bottom: 16px; }
.metadata-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; padding-bottom: 24px; }
.encrypt-page label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.encrypt-page input:not([type=file]) { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: white; padding: 11px 12px; font: inherit; font-size: 14px; color: var(--ink); }
.download-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; border-top: 1px solid var(--line); margin-top: 24px; padding-top: 24px; }
.filename-field { flex: 1; min-width: 180px; max-width: 380px; margin-right: auto; }
.tool-help { max-width: 690px; margin-top: 52px; }
.tool-help h2 { font-size: 17px; letter-spacing: 0; }
.tool-help p { color: var(--muted); font-size: 13px; line-height: 1.9; margin-top: 12px; }
.encrypt-page [hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 700px) {
  .encrypt-page { padding-block: 38px 48px; }
  .tool-heading > p { font-size: 16px; }
  .tool-note { margin-block: 20px 26px; font-size: 13px; }
  .workbench { grid-template-columns: minmax(0, 1fr); }
  .editor-pane { padding: 16px; }
  .result-pane { border-left: 0; border-top: 1px solid var(--line); }
  .encrypt-page textarea { height: 250px; font-size: 14px; }
  .output-wrap, .empty-result { min-height: 200px; }
  .result-pane textarea { height: 200px; }
  .processing-note { flex-basis: 100%; margin: 4px 0 0; }
  .metadata-fields { grid-template-columns: minmax(0, 1fr); }
  .encrypt-page input:not([type=file]) { font-size: 16px; }
  .tool-help { margin-top: 36px; }
}
