.pms { position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #f4f7fc; color: #172022; font: 15px/1.5 Arial, sans-serif; letter-spacing: 0; overflow: hidden; }
.pms *, .pms *::before, .pms *::after { box-sizing: border-box; letter-spacing: 0; }
.pms [hidden] { display: none !important; }
.pms::backdrop { background: #f4f7fc; }
.pms-sheen { position: absolute; inset: -15%; pointer-events: none; background: linear-gradient(115deg, #8dbbff 0%, #aacaff 18%, #f3b2b7 38%, #fff1ad 58%, #9ad8bd 80%, #c6e2ff 100%); background-size: 110% 110%; opacity: .8; filter: blur(45px); animation: pms-flow 17s ease-in-out infinite alternate; }
@keyframes pms-flow { from { transform: rotate(-8deg) translate(-4%, -3%); background-position: 0% 25%; } to { transform: rotate(9deg) translate(4%, 3%); background-position: 100% 75%; } }
.pms-shell { position: relative; height: 100%; overflow: auto; padding: 24px max(24px, env(safe-area-inset-right)) 24px max(24px, env(safe-area-inset-left)); }
.pms-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.pms-brand { font-size: 20px; font-weight: 700; }
.pms-actions { display: flex; gap: 8px; }
.pms .pms-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid #ffffffa8; border-radius: 50%; background: #ffffffb8; color: #253331; cursor: pointer; }
.pms button:focus-visible, .pms input:focus-visible { outline: 3px solid #185abc; outline-offset: 3px; }
.pms-search { max-width: 880px; margin: 0 auto; padding-top: min(23vh, 220px); transition: padding-top 350ms cubic-bezier(.22,.8,.25,1); }
.pms-typing .pms-search { padding-top: 28px; }
.pms-field { display: flex; gap: 18px; align-items: center; padding: 22px 26px; min-height: 88px; background: #fff; border: 1px solid #fff; border-radius: 8px; box-shadow: 0 12px 46px #253f6526; }
.pms-field > span { font-size: 30px; color: #53625d; flex-shrink: 0; }
.pms .pms-input { width: 100%; min-width: 0; padding: 0; margin: 0; background: #fff; color: #172022; border: 0; border-radius: 0; box-shadow: none; font: 28px/1.4 Arial, sans-serif; }
.pms .pms-input:focus { outline: none; }
.pms-field:focus-within { outline: 2px solid #346dc8; outline-offset: 3px; }
.pms-input::placeholder { color: #68736f; opacity: 1; }
.pms-toolbar { display: flex; justify-content: flex-end; margin-top: 16px; min-height: 24px; }
.pms-new-tab { display: flex; align-items: center; gap: 9px; font-size: 14px; cursor: pointer; }
.pms .pms-new-tab input { width: 18px; height: 18px; margin: 0; accent-color: #185abc; }
.pms-status { font-size: 13px; min-height: 28px; margin-top: 12px; color: #364940; }
.pms-results { max-height: 51vh; max-height: 51dvh; overflow-y: auto; overscroll-behavior: contain; border-radius: 8px; background: #ffffffed; }
.pms-group { padding: 8px; }
.pms-group + .pms-group { border-top: 1px solid #dce3e0; }
.pms-group h2, .pms-shortcut-group h2 { margin: 7px 12px; color: #53605a; font-size: 12px; font-weight: 700; }
.pms-result { display: flex; align-items: center; justify-content: space-between; min-height: 62px; gap: 16px; padding: 12px; border-radius: 4px; cursor: pointer; border: 1px solid transparent; }
.pms-result[aria-selected="true"] { background: #e8f0ff; border-color: #adc8f5; }
.pms-result-copy { display: grid; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.pms-result strong { font-size: 15px; font-weight: 600; }
.pms-subtitle { font-size: 13px; color: #53605a; }
.pms-result > .material-symbols-rounded { flex-shrink: 0; font-size: 20px; }
.pms-help { max-width: 760px; margin: 40px auto 0; }
.pms-help h1 { margin: 0 0 24px; font-size: 26px; overflow-wrap: anywhere; }
.pms-shortcuts { background: #fffffff2; border-radius: 8px; padding: 16px 24px; }
.pms-shortcut-group + .pms-shortcut-group { border-top: 1px solid #dce3e0; padding-top: 16px; }
.pms-shortcut-group h2 { margin-left: 0; }
.pms-shortcut-group dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 20px 16px; margin: 20px 0; }
.pms-shortcut-group dt { overflow-wrap: anywhere; }
.pms-shortcut-group dd { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; margin: 0; }
.pms kbd { padding: 3px 8px; border: 1px solid #c7cfcc; border-bottom-width: 2px; border-radius: 4px; background: #f6f8f7; font: 13px/1.5 Arial, sans-serif; overflow-wrap: anywhere; max-width: 100%; }
@media (max-width: 600px) { .pms-shell { padding: 16px; } .pms-brand { font-size: 18px; } .pms-search { padding-top: 18vh; } .pms-typing .pms-search { padding-top: 24px; } .pms-field { min-height: 76px; padding: 18px; gap: 12px; } .pms .pms-input { font-size: 22px; } .pms-results { max-height: 54dvh; } .pms-help { margin-top: 28px; } .pms-shortcuts { padding: 12px 16px; } }
@media (max-height: 550px) { .pms-search { padding-top: 20px; } .pms-results { max-height: 40dvh; } }
@media (prefers-reduced-motion: reduce) { .pms-sheen { animation: none; } .pms-search { transition: none; } }
