.companion-trigger {
  position:absolute;z-index:3;left:50%;bottom:max(31px,calc(env(safe-area-inset-bottom) + 15px));
  transform:translateX(-50%);display:inline-flex;align-items:center;gap:9px;
  max-width:min(82vw,340px);min-height:44px;padding:8px 16px;
  border:1px solid #fbf3db;border-radius:24px;background:#f9f3e2f2;color:#503c2c;
  box-shadow:0 3px 14px #211a1440;font:650 .9rem/1.25 system-ui,sans-serif;
  text-align:left;word-break:keep-all;cursor:pointer;touch-action:manipulation;
}
.companion-trigger:disabled {background:#433c33ed;color:#fffaeb;border-color:#e6dbc4a6;cursor:default}
.poodle-paw {
  position:relative;display:inline-block;flex:none;width:22px;height:21px;
  background:radial-gradient(ellipse 3px 4px at 12% 43%,currentColor 90%,transparent 100%),
    radial-gradient(ellipse 3px 4px at 37% 20%,currentColor 90%,transparent 100%),
    radial-gradient(ellipse 3px 4px at 66% 20%,currentColor 90%,transparent 100%),
    radial-gradient(ellipse 3px 4px at 89% 44%,currentColor 90%,transparent 100%);
}
.poodle-paw::after {content:"";position:absolute;left:23%;right:19%;bottom:0;height:52%;border-radius:65% 65% 40% 40%;background:currentColor}
#poodle-dialog {
  position:fixed;inset:auto max(16px,env(safe-area-inset-right)) max(86px,calc(env(safe-area-inset-bottom) + 74px)) auto;
  width:min(340px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - max(86px, env(safe-area-inset-bottom) + 74px) - 12px);margin:0;padding:0;
  border-radius:16px;border:1px solid #cfc3aa;background:#faf7ed;color:#312d24;
  box-shadow:0 12px 36px #23302440;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;
  font:400 .95rem/1.55 system-ui,sans-serif;word-break:keep-all;
}
#poodle-dialog::backdrop {background:#17221a30}
.poodle-heading {display:flex;align-items:center;gap:12px;margin:0 18px;padding:14px 0 10px;border-bottom:1px solid #d9ceba}
.poodle-portrait {display:block;flex:none;border-radius:12px;background:#e8e1d3}
.poodle-heading p {margin:0 0 2px;color:#695342;font-size:.76rem;font-weight:650}
.poodle-heading h2 {margin:0;font-size:1.4rem;line-height:1.2}
.poodle-heading h2:focus {outline:0}
.poodle-close {margin-left:auto;width:42px;height:42px;border:0;border-radius:50%;color:#584331;background:transparent;font:400 1.65rem/1 system-ui;cursor:pointer}
.poodle-close:hover {background:#ece5d4}
.poodle-body {padding:12px 18px 17px}
.poodle-copy {margin:0 0 15px}
.poodle-bond {margin:0 0 13px;padding-bottom:12px;border-bottom:1px solid #ded6c4}
.poodle-bond-title {display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.poodle-bond-title h3,.poodle-bond-title strong {margin:0;color:#355440;font-size:.97rem}
.poodle-bond progress {display:block;width:100%;height:5px;border:0;border-radius:4px;margin:7px 0;overflow:hidden;appearance:none;background:#e3dccb;color:#648462}
.poodle-bond progress::-webkit-progress-bar {background:#e3dccb}
.poodle-bond progress::-webkit-progress-value {background:#648462;border-radius:4px}
.poodle-bond progress::-moz-progress-bar {background:#648462;border-radius:4px}
.poodle-bond p {margin:3px 0 0;font-size:.87rem;color:#5d584a}
.poodle-tricks {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.poodle-trick {box-sizing:border-box;display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:3px;
  min-height:54px;min-width:0;padding:8px 10px;text-align:start;background:#f1ede2;border:1px solid #ded7c7;
  color:#5a5549;font:inherit;border-radius:8px;line-height:1.35}
.poodle-trick-title {display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:2px 4px}
.poodle-trick-title strong {font-size:.95rem}
.poodle-trick-title small {font-size:.81rem}
.poodle-trick-description {font-size:.84rem}
.poodle-trick.learned {background:#edf1e6;border-color:#a6b7a0;color:#304d39;cursor:pointer;touch-action:manipulation}
.poodle-trick.learned:hover:not(:disabled) {background:#dfe9d9}
.poodle-announcement {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.poodle-actions {display:grid;gap:7px}
#poodle-dialog .poodle-primary,#npc-dialogue .poodle-primary,
#poodle-dialog .poodle-secondary,#npc-dialogue .poodle-secondary {
  min-height:44px;padding:8px 12px;border-radius:9px;border:1px solid #355540;
  font:650 .9rem/1.4 system-ui,sans-serif;cursor:pointer;touch-action:manipulation;
}
#poodle-dialog .poodle-primary,#npc-dialogue .poodle-primary {background:#365641;color:#faf9ee}
#poodle-dialog .poodle-secondary,#npc-dialogue .poodle-secondary {background:#f7f3e8;color:#3d493d;border-color:#b5b79f}
#poodle-dialog button:disabled,#npc-dog-panel button:disabled {opacity:.65;cursor:default}
#poodle-dialog button:focus-visible,#npc-dialogue #npc-dog-panel button:focus-visible {outline:2px solid #7a683d;outline-offset:2px}
#npc-dog-panel {flex:1;min-height:0;padding:12px;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;scrollbar-width:thin}
.poodle-staff-card {padding:13px 14px;border:1px solid #d4cbb6;border-radius:11px;background:#faf7ecf7;color:#303b30;font:400 .9rem/1.5 system-ui,sans-serif;word-break:keep-all}
.poodle-staff-card + .poodle-staff-card {margin-top:9px}
.poodle-staff-card h3 {margin:0;font:700 1.08rem/1.4 system-ui,sans-serif}
.poodle-staff-card p {margin:5px 0 11px}
.poodle-staff-card > button {width:100%}
.poodle-choices {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.poodle-staff-card .poodle-staff-note,.poodle-note {margin:9px 0 0;color:#60533c;font-size:.83rem;line-height:1.45}
.poodle-staff-note:empty,.poodle-note:empty,.poodle-actions:empty {display:none}
#tour .walk-actions > .companion-trigger {
  position:static;transform:none;max-width:100%;margin:0;pointer-events:auto;white-space:normal;
}
.poodle-dog-picker {display:flex;gap:6px;margin:0 0 9px}
.poodle-dog-picker button {flex:1}
#npc-dog-panel .poodle-dog-picker [aria-pressed="true"] {background:#365641;color:#faf9ee;border-color:#355540}
@media(max-width:510px), (max-height:490px) {
  #poodle-dialog {inset:auto max(9px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) auto;width:min(360px,calc(100vw - 18px));max-height:calc(100dvh - max(10px,env(safe-area-inset-bottom)) - 8px)}
}
