/* CTO-158: the "+" add menu. A full-screen <dialog>: dim + blur, content at the bottom.
   Closed it is display:none, so without JavaScript the "+" link just goes to /vault/add.
   The bottom of the dim is darker so light text keeps >= 4.5:1 over any page behind it. */

.plus-menu {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(18, 24, 31, .55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  overflow: hidden;
}

.plus-menu::backdrop {
  background: transparent;
}

.plus-inner {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  max-width: 560px;
  height: 100%;
  margin: 0 auto;
  padding: 0 16px calc(20px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, rgba(18, 24, 31, .4), rgba(18, 24, 31, 0) 70%);
}

.plus-title {
  margin: 0 4px 12px;
  font-size: 19px;
  font-weight: 700;
  color: #fff;
}

.plus-scan,
.plus-scan:visited {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: var(--bg);
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(18, 24, 31, .06), 0 4px 14px rgba(18, 24, 31, .05);
  color: var(--text-primary);
  text-decoration: none;
}

.plus-scan.is-disabled {
  background: var(--accent-light);
}

.plus-scan-icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--accent);
  color: #fff;
}

.plus-scan.is-disabled .plus-scan-icon {
  background: var(--slate);
}

.plus-scan-icon .ic {
  width: 28px;
  height: 28px;
}

.plus-scan-txt {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.plus-scan-name {
  font-size: 17px;
  font-weight: 700;
}

.plus-scan-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.plus-or {
  margin: 16px 0 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.plus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.plus-tile,
.plus-tile:visited {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 14px;
  background: var(--bg);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(18, 24, 31, .06), 0 4px 14px rgba(18, 24, 31, .05);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.plus-tile-icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent-light);
  color: var(--accent);
}

.plus-tile-icon svg {
  width: 20px;
  height: 20px;
}

.plus-scan:focus-visible,
.plus-tile:focus-visible,
.plus-close:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.plus-close-wrap {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.plus-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border: 0;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-primary);
  cursor: pointer;
}

.plus-close .ic {
  width: 26px;
  height: 26px;
  stroke-width: 2.2;
}
