/* 摄像头、麦克风的权限说明（perm.js）。自己带颜色，浅底深字，放在黑底的拍摄页、通话页上也一样 */
.yperm {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(20, 18, 14, 0.55);
  color: #1a1814;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", sans-serif;
  text-align: left;
  user-select: text;
  -webkit-user-select: text;
}

.yperm-card {
  display: grid;
  gap: 10px;
  width: min(100%, 460px);
  max-height: 92vh;
  overflow: auto;
  padding: 20px 18px calc(18px + env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0;
  background: #fffdf8;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.18);
}

@media (min-width: 700px) {
  .yperm {
    align-items: center;
  }

  .yperm-card {
    border-radius: 22px;
  }
}

.yperm-head {
  display: flex;
  gap: 8px;
}

.yperm-head .yperm-icon {
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 12px;
  background: #ebe4d6;
}

.yperm-title {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
}

.yperm-text-line,
.yperm-small,
.yperm-sub {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

.yperm-small {
  color: #6f6a62;
  font-size: 13px;
}

.yperm-sub {
  margin-top: 4px;
  color: #6f6a62;
  font-size: 14px;
  font-weight: 600;
}

.yperm-icon {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.yperm-icon.yperm-text {
  fill: currentColor;
  stroke: none;
}

.yperm-icon text {
  fill: currentColor;
  stroke: none;
}

/* 地址栏示意图：要点的那个图标圈出来 */
.yperm-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  background: #ebe4d6;
  color: #6f6a62;
  font-size: 14px;
}

.yperm-hit {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid #e5484d;
  border-radius: 50%;
  color: #1a1814;
  animation: yperm-pulse 1.4s ease-in-out infinite;
}

@keyframes yperm-pulse {
  50% { box-shadow: 0 0 0 6px rgba(229, 72, 77, 0.2); }
}

.yperm-url {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yperm-steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0 0 0 22px;
}

.yperm-steps li {
  padding-left: 2px;
  font-size: 15px;
  line-height: 1.45;
}

.yperm-steps li::marker {
  color: #6f6a62;
  font-weight: 600;
}

.yperm-steps li .yperm-icon {
  margin: 0 6px -5px 0;
  color: #3f6f8a;
}

.yperm-actions {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

.yperm-actions button {
  height: 48px;
  border: 1px solid #d9d1c3;
  border-radius: 14px;
  background: #fffdf8;
  color: #1a1814;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}

.yperm-actions button.yperm-go {
  border-color: #1a1814;
  background: #1a1814;
  color: #fff;
  font-weight: 600;
}

/* 一层一层的设置；要先看的那一层（比如安卓的总开关）框出来 */
.yperm-group {
  display: grid;
  gap: 8px;
}

.yperm-focus {
  padding: 10px 12px;
  border: 2px solid #e5484d;
  border-radius: 14px;
  background: #fff4f1;
}

.yperm-focus .yperm-sub {
  color: #b42318;
}

/* 拿到画面后看一眼有没有画面用的，不显示 */
.yperm-probe {
  position: fixed;
  top: 0;
  left: 0;
  width: 2px;
  height: 2px;
  opacity: 0;
  pointer-events: none;
}
