/* Rust++ — notifications, settings, push and commands (iOS 27 edition) */

/* shared */
.pp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--ios-accent); background: var(--ios-accent); color: #0B0B0E;
  font: 600 13px var(--ios-font); cursor: pointer; white-space: nowrap;
}
.pp-btn.ghost { background: rgba(255,255,255,.06); border-color: var(--ios-border); color: var(--ios-text-1); }
.pp-btn.ghost:hover { background: rgba(255,255,255,.1); }
.pp-btn.small { height: 28px; padding: 0 12px; font-size: 12px; }
.pp-input {
  height: 34px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--ios-border); background: var(--ios-surface-2);
  color: var(--ios-text-1); font: 500 13px var(--ios-font); outline: none; min-width: 0;
}
.pp-input.short { width: 64px; text-align: center; font-family: var(--ios-font-mono); font-weight: 700; }
.pp-note { font-size: 12.5px; color: var(--ios-text-3); line-height: 1.5; padding: 4px 2px; }
.pp-warn { color: var(--ios-amber); font-weight: 600; text-transform: none; letter-spacing: 0; }
.pp-section-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ios-text-2); margin: 6px 4px 10px; }

.pp-switch { position: relative; width: 46px; height: 28px; border-radius: 999px; background: var(--ios-surface-3); border: 1px solid var(--ios-border); flex-shrink: 0; transition: background .25s ease; }
.pp-switch i { position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.4); transition: transform .38s var(--ios-curve-bounce); }
.pp-switch.on { background: var(--ios-accent); border-color: var(--ios-accent); box-shadow: 0 0 14px rgba(167,139,250,.3); }
.pp-switch.on i { transform: translateX(18px); }

/* cards & rows */
.pp-settings { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
#pp-bot-settings { display: flex; flex-direction: column; gap: 14px; }
.pp-card {
  background: var(--ios-glass-fill), var(--ios-surface-1); border: 1px solid var(--ios-border); border-radius: 24px;
  padding: 16px 18px; box-shadow: var(--ios-glass-edge), 0 6px 22px rgba(0,0,0,.28); display: flex; flex-direction: column; gap: 10px;
}
.pp-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pp-card-title { font-size: 16px; font-weight: 700; color: var(--ios-text-1); letter-spacing: -.01em; }
.pp-card-sub { font-size: 12.5px; color: var(--ios-text-3); margin-top: 2px; }
.pp-head-actions { display: flex; gap: 8px; }
.pp-rows { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.025); border: 1px solid var(--ios-border-subtle); }
.pp-rows.dim { opacity: .5; }
.pp-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; text-align: left;
  padding: 12px 14px; background: transparent; border: none; border-top: 1px solid var(--ios-divider); color: inherit; font-family: var(--ios-font); cursor: pointer;
}
.pp-row:first-child { border-top: none; }
.pp-row:not(.static):not(:disabled):hover { background: rgba(255,255,255,.03); }
.pp-row:disabled { cursor: default; }
.pp-row.static { cursor: default; }
.pp-row-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pp-row-text b { font-size: 14px; font-weight: 600; color: var(--ios-text-1); }
.pp-row-text small { font-size: 12px; color: var(--ios-text-3); }

/* iOS install guide */
.pp-install { display: flex; flex-direction: column; gap: 8px; }
.pp-install-step { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--ios-text-1); padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.04); }
.pp-install-step > b:first-child { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--ios-accent); color: #0B0B0E; font-size: 13px; }
.pp-share-ico { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; border-radius: 6px; background: rgba(96,165,250,.2); color: #93C5FD; font-size: 12px; }

/* events matrix */
.pp-matrix { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; border: 1px solid var(--ios-border-subtle); background: rgba(255,255,255,.025); }
.pp-matrix-row { display: grid; grid-template-columns: minmax(0, 1fr) repeat(4, 78px); align-items: center; padding: 8px 14px; border-top: 1px solid var(--ios-divider); }
.pp-matrix-row:first-child { border-top: none; }
.pp-matrix-row.head { font-size: 11px; font-weight: 700; color: var(--ios-text-3); text-transform: uppercase; letter-spacing: .05em; padding: 10px 14px; }
.pp-matrix-row.head span, .pp-matrix-cell { text-align: center; justify-self: center; }
.pp-matrix-label { font-size: 13.5px; color: var(--ios-text-1); font-weight: 500; }
.pp-matrix-cell { background: none; border: none; cursor: pointer; padding: 2px; }

/* nav badge */
.nav-item { position: relative; }
.pp-badge {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--ios-red);
  color: #fff; font: 700 11px var(--ios-font); display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 0 10px rgba(248,113,113,.45); animation: ios27Pop .4s var(--ios-curve-bounce);
}
@media (max-width: 768px) {
  .pp-badge { position: absolute; top: 4px; right: 12px; margin: 0; min-width: 16px; height: 16px; font-size: 9.5px; padding: 0 4px; }
}

/* notifications feed */
.notif-toolbar { display: flex; gap: 8px; align-items: center; }
.notif-toolbar .notif-search-wrap { flex: 1; }
.pp-day { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ios-text-3); margin: 14px 6px 6px; }
.pp-day:first-child { margin-top: 2px; }
.pp-notif {
  position: relative; display: grid; grid-template-columns: 40px minmax(0,1fr) auto; gap: 12px; align-items: center; width: 100%;
  padding: 10px 12px; margin-bottom: 6px; border-radius: 16px; border: 1px solid var(--ios-border-subtle); background: var(--ios-surface-1);
  color: var(--ios-text-1); font-family: var(--ios-font); text-align: left; cursor: pointer;
}
.pp-notif:hover { background: var(--ios-surface-2); border-color: var(--ios-border); }
.pp-notif.selected { border-color: var(--ios-border-active); background: rgba(167,139,250,.08); }
.pp-notif.unread::after { content: ""; position: absolute; left: 4px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--ios-accent); box-shadow: 0 0 8px var(--ios-accent); }
.pp-notif.alarm { border-color: rgba(248,113,113,.25); background: linear-gradient(90deg, rgba(248,113,113,.08), transparent 60%), var(--ios-surface-1); }
.pp-notif-ico {
  width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 19px;
  background: color-mix(in srgb, var(--c) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent);
}
.pp-notif-ico img { width: 26px; height: 26px; object-fit: contain; }
.pp-notif-main { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.pp-notif-main b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-notif.alarm .pp-notif-main b { color: #FECACA; }
.pp-notif-main small { font-size: 12px; color: var(--ios-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-notif-time { font-size: 11.5px; color: var(--ios-text-3); font-variant-numeric: tabular-nums; }
.pp-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 48px 20px; color: var(--ios-text-2); font-size: 13px; }
.pp-empty b { color: var(--ios-text-1); font-size: 15px; }
.pp-empty-ico { width: 56px; height: 56px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 26px; background: rgba(255,255,255,.05); margin-bottom: 6px; }

/* detail panel */
.pp-detail { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 8px 4px; animation: ios27Rise .45s var(--ios-curve-sheet) both; }
.pp-detail-ico {
  width: 64px; height: 64px; border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 30px;
  background: color-mix(in srgb, var(--c) 18%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 35%, transparent), 0 10px 30px color-mix(in srgb, var(--c) 20%, transparent);
}
.pp-detail-ico img { width: 40px; height: 40px; object-fit: contain; }
.pp-detail-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--c); }
.pp-detail-title { font-size: 21px; font-weight: 800; letter-spacing: -.02em; color: var(--ios-text-1); line-height: 1.25; }
.pp-detail-sub { font-size: 14px; color: var(--ios-text-2); }
.pp-detail-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; width: 100%; }
.pp-detail-meta > div { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid var(--ios-border-subtle); }
.pp-detail-meta small { font-size: 11px; color: var(--ios-text-3); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.pp-detail-meta b { font-size: 14px; color: var(--ios-text-1); }
.pp-detail-meta span { font-size: 12px; color: var(--ios-text-3); }
.pp-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

/* commands */
.pp-cmd-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.pp-cmd-title { font-size: 24px; font-weight: 800; letter-spacing: -.03em; color: var(--ios-text-1); }
.pp-cmd-search { width: 260px; border-radius: 999px; }
.pp-cmd-group { margin-bottom: 18px; }
.pp-cmd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.pp-cmd {
  display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 20px;
  background: var(--ios-glass-fill), var(--ios-surface-1); border: 1px solid var(--ios-border); box-shadow: var(--ios-glass-edge);
}
.pp-cmd-syntax { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.pp-cmd-syntax code { font: 700 15px var(--ios-font-mono); color: #C4B5FD; }
.pp-cmd-args { font: 500 12.5px var(--ios-font-mono); color: var(--ios-text-2); }
.pp-cmd-alias { font: 500 11px var(--ios-font-mono); color: var(--ios-text-3); padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.05); }
.pp-cmd-desc { font-size: 13px; color: var(--ios-text-2); line-height: 1.45; flex: 1; }
.pp-cmd-ex { font-size: 12px; color: var(--ios-text-3); }
.pp-cmd-ex code { font-family: var(--ios-font-mono); color: var(--ios-text-1); }
.pp-cmd-actions { display: flex; gap: 6px; justify-content: flex-end; }

@media (max-width: 768px) {
  .pp-matrix-row { grid-template-columns: minmax(0, 1fr) repeat(4, 54px); padding: 8px 10px; }
  .pp-switch { transform: scale(.88); }
  .pp-cmd-search { width: 100%; }
  .pp-cmd-grid { grid-template-columns: 1fr; }
}
