
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#091523;color:#e9f7f5;font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;line-height:1.55}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}
.tool-wrap{max-width:1130px;margin:0 auto;padding:24px clamp(16px,4vw,38px) 70px}
.tool-nav{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;border-bottom:1px solid #294751;padding:0 0 20px}
.tool-brand{display:inline-flex;flex-direction:column;align-items:flex-start;text-decoration:none;gap:3px}.tool-brand img{width:155px;height:auto;display:block}.tool-brand span{color:#9fe9d1;font-size:12px;font-weight:750;letter-spacing:.07em}
.tool-nav-links{display:flex;gap:15px;flex-wrap:wrap;font-size:.9rem}.tool-nav-links a{color:#bcecdf;text-decoration:none}.tool-nav-links a:hover{text-decoration:underline}
.tool-header{padding:44px 0 26px}.tool-kicker{display:block;color:#a1eed6;font-weight:800;letter-spacing:.12em;font-size:.75rem}.tool-header h1{font-size:clamp(2.1rem,4.5vw,3.45rem);letter-spacing:-.04em;line-height:1.12;margin:10px 0 13px}.tool-header p{max-width:72ch;color:#bdd4da;margin:0;line-height:1.7}
.tool-layout{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:20px;align-items:start}
.tool-card{background:#132a38;border:1px solid #385763;border-radius:18px;padding:24px;min-width:0}.tool-card h2{margin:0 0 16px;font-size:1.3rem;letter-spacing:-.02em}.tool-card p{color:#bdd3d8;font-size:.92rem}.tool-card label{display:block;font-weight:650;font-size:.87rem;color:#c6e4e0;margin:16px 0 7px}
.tool-card textarea,.tool-card input,.tool-card select{display:block;width:100%;min-height:45px;padding:11px 13px;color:#f5ffff;background:#0c1d2b;border:1px solid #4b6873;border-radius:9px}
.tool-card textarea{min-height:190px;resize:vertical;line-height:1.5}.tool-card :is(input,textarea,select,button):focus-visible{outline:2px solid #a8f4d8;outline-offset:3px}
.tool-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.tool-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:18px}.tool-actions button{border-radius:10px;border:1px solid #47746e;background:#1b3b46;color:#c9f6e8;font-weight:700;padding:10px 17px;min-height:44px}.tool-actions button.primary{background:#aaeeda;color:#09282f;border:0}.tool-actions button:hover{filter:brightness(1.12)}
.tool-status{min-height:1.3em;margin:12px 0 0;font-size:.85rem;color:#a1e9d6}
.tool-placeholder{color:#9ebbc4}.tool-output{display:grid;gap:12px}.tool-result{border:1px solid #43646d;border-radius:13px;background:#0f2634;padding:16px}.tool-result h3{color:#aef4d8;margin:0 0 10px;font-size:1rem}.tool-result p{margin:6px 0}.tool-result ol,.tool-result ul{margin:7px 0;padding-left:22px}.tool-result li+li{margin-top:6px}.tool-result select{margin-top:6px;padding:7px;min-height:38px}
.tool-note{border-left:3px solid #8dd9c0;background:#173831;padding:13px 15px;font-size:.86rem;line-height:1.55;color:#d0eae3;margin-top:18px}
.tool-footer{padding:26px 0;border-top:1px solid #2c4d58;margin-top:35px;color:#a7bdc6;font-size:.85rem}
.tool-footer a{color:#b7f3dc}
@media(max-width:850px){.tool-layout{grid-template-columns:minmax(0,1fr)}.tool-header{padding-top:30px}}
@media(max-width:480px){.tool-wrap{padding:18px 15px 50px}.tool-card{padding:18px;border-radius:14px}.tool-row{grid-template-columns:1fr}.tool-nav-links{gap:9px}.tool-actions button{flex:1}}
@media print{body{background:white;color:#111}.tool-nav-links,.tool-form,.tool-actions,.tool-note,.tool-footer{display:none!important}.tool-layout{display:block}.tool-card,.tool-result{background:white;color:#111;border-color:#888}.tool-result h3,.tool-card p{color:#111}}

.teams-tool-layout{grid-template-columns:minmax(320px,.42fr) minmax(0,.58fr)}
.random-team-setup{margin:16px 0;border:1px solid #345361;padding:13px 15px;border-radius:13px;background:#112938}.random-team-setup summary{cursor:pointer;font-weight:750;color:#b7f3df}.random-team-setup textarea{min-height:150px}
.teams-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.team{padding:17px;border:1px solid #365564;border-radius:13px;background:#101f2e;min-width:0}.team>label{display:block;font-size:.73rem;font-weight:700;color:#a9bec6;margin:0 0 7px}.team .side,.team .teamName{margin:0 0 9px;min-height:40px}.teamName[readonly]{background:#1a3440!important}
.team-hint{font-size:12px!important;color:#91aeb7!important;margin:0 0 9px!important}
.member-bubbles{display:flex;flex-wrap:wrap;align-content:flex-start;gap:9px;min-height:58px;padding:10px 0}.member-bubbles[data-empty=true]:before{content:"Add names below";font-size:12px;color:#8199af;padding:8px 0}
.member-bubble{display:inline-flex;align-items:center;max-width:100%;padding:9px 14px;min-height:36px;border-radius:999px;background:#213d43;border:1px solid #527b72;color:#d0f5e5;font-size:13px;font-weight:500;overflow-wrap:anywhere;line-height:1.4;cursor:grab;user-select:none}.member-bubble:hover{background:#2b514e;border-color:#8dcbb5}.member-bubble.dragging{opacity:.35}.team-drop-target{border-color:#a5edcf;box-shadow:0 0 0 3px #a5edcf18;background:#1c363b}
.member-entry-row{display:flex;gap:7px;align-items:center}.member-entry-row input{min-width:0;font-size:13px}.member-entry-row button,.tool-results-head button{border:1px solid #527b72;border-radius:9px;background:#244343;color:#dbf9ef;padding:9px 13px}
.tool-results-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px}.tool-results-head h2{margin:0}.tool-subtle{font-size:.81rem!important;color:#a9c4ca!important;margin:14px 0 0!important}
.move-dialog{width:min(470px,calc(100vw - 32px));padding:25px;border:1px solid #4c746e;border-radius:16px;background:#132938;color:#e5f9f5}.move-dialog::backdrop{background:#000a}#memberMoveOptions{display:grid;gap:9px}#memberMoveOptions button{padding:11px;border:1px solid #51756e;border-radius:10px;background:#1c3a44;color:#d7faef;text-align:left}.move-dialog h2{margin:0 0 14px}
@media(max-width:980px){.teams-tool-layout{grid-template-columns:1fr}}@media(max-width:620px){.teams-grid{grid-template-columns:1fr}.team{padding:15px}}

/* Original Podium motion loader, adapted from desktop/index.html */
.motion-loading{display:flex;align-items:center;justify-content:center;gap:20px;padding:22px;margin-top:16px;border:1px solid #2b3b4e;border-radius:18px;background:#101c2b;color:#aaf3d6}
.motion-loading[hidden]{display:none}
.motion-loader{position:relative;width:64px;height:64px;flex-shrink:0}
.motion-loader-p{position:absolute;inset:0;display:grid;place-items:center;font:bold 56px/1 Arial,sans-serif;color:#f5f8ff;padding-bottom:12px}
.motion-orbit{position:absolute;inset:0;animation:motionOrbit 1s linear infinite}
.motion-orbit i{position:absolute;top:27px;right:-3px;width:10px;height:10px;border-radius:50%;background:#a5f3ce;box-shadow:0 0 14px #a5f3ce88}
@keyframes motionOrbit{0%{transform:rotate(0)}50%,100%{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.motion-orbit{animation:none}}
.motion-loading-dots i{font-style:normal;animation:motionPulse .8s ease-in-out infinite alternate}
.motion-loading-dots i:nth-child(2){animation-delay:.16s}.motion-loading-dots i:nth-child(3){animation-delay:.32s}
@keyframes motionPulse{from{opacity:.3}to{opacity:1}}
.motion-arrived{animation:motionArrived .36s ease-out}
@keyframes motionArrived{from{box-shadow:0 0 0 2px #a5f3ceaa}to{box-shadow:0 0 0 0 #a5f3ce00}}
#motionInformationBox{margin-top:18px}
.tool-card [hidden]{display:none!important}

/* Motion Generator: use a full-width single editor */
.motion-single-layout{display:block;max-width:none;width:100%}
.motion-single-layout>.tool-card{width:100%;max-width:none;padding:clamp(22px,3vw,34px)}
.motion-single-layout .visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.motion-single-layout #motion{min-height:190px}
.motion-single-layout .tool-row{grid-template-columns:repeat(2,minmax(0,1fr));max-width:760px}
.motion-single-layout .tool-actions{margin-top:20px}
@media(max-width:600px){.motion-single-layout>.tool-card{padding:18px}.motion-single-layout .tool-row{grid-template-columns:1fr}}

/* Editable, large quoted motion */
.motion-quote-frame{position:relative;isolation:isolate;min-width:0}
.motion-single-layout .motion-quote-frame #motion{display:block;width:100%;min-height:300px;padding:55px 75px 65px;color:#f3fffa;background:#0b2030;border:1px solid #4b7375;border-radius:15px;font-family:inherit;font-size:clamp(2.2rem,4.6vw,4rem);font-weight:750;line-height:1.25;letter-spacing:-.035em;overflow-wrap:break-word;resize:vertical}
.motion-quote-frame :is(.motion-quote-open,.motion-quote-close){position:absolute;font-family:Georgia,serif;font-size:clamp(3.2rem,6vw,5.4rem);font-weight:700;line-height:1;color:#a7ecd4;pointer-events:none;user-select:none}
.motion-quote-open{top:19px;left:20px}.motion-quote-close{right:22px;bottom:7px}
@media(max-width:680px){.motion-single-layout .motion-quote-frame #motion{padding:44px 43px 50px;min-height:240px;font-size:clamp(1.75rem,7vw,2.65rem)}.motion-quote-open{top:12px;left:12px}.motion-quote-close{right:14px;bottom:4px}}

/* Show decorative mint quotes only after a generator result exists. */
.motion-quote-frame[data-generated="false"] .motion-quote-open,
.motion-quote-frame[data-generated="false"] .motion-quote-close{display:none!important}

/* Readable information slides in the web Motion Generator */
.motion-single-layout .motion-info-panel{margin-top:30px;padding:clamp(18px,2.3vw,28px);background:linear-gradient(135deg,#17313b,#102533);border:1px solid #45746f;border-radius:16px}
.motion-info-heading{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:16px;margin-bottom:22px}
.motion-info-heading h2{margin:5px 0 7px;font-size:clamp(1.35rem,2vw,1.7rem);color:#d8fff0}
.motion-info-heading p{font-size:.9rem;color:#b8cfd0;margin:0;line-height:1.5}
.motion-info-actions{display:flex;gap:8px}
.motion-info-actions button{border:1px solid #5a8c80;background:#21453f;color:#ddffed;border-radius:9px;padding:9px 14px;font-size:.85rem;font-weight:700}
.motion-info-display{display:grid;gap:18px;max-width:90ch}
.motion-info-display p{font-size:clamp(1rem,1.35vw,1.12rem);line-height:1.75;color:#e6f4f1;margin:0;white-space:pre-wrap}
.motion-info-display p+p{padding-top:18px;border-top:1px solid #355660}
.motion-info-panel textarea{min-height:230px;line-height:1.7;font-size:1rem;resize:vertical}
.motion-info-panel [hidden]{display:none!important}
@media(max-width:620px){.motion-info-heading{flex-direction:column}.motion-info-display p{font-size:1rem;line-height:1.62}}

/* Simplified information slide: no decorative paragraph dividers */
.motion-info-display p+p{border-top:0!important;padding-top:0!important}
.motion-info-display p:first-child{color:#ddf9ed}
.motion-info-heading h2{margin-top:0}

/* Team Generator — unified dropdown alignment */
.teams-tool-layout .tool-card select {
  box-sizing: border-box;
  display: block;
  width: 100%;
  height: 46px;
  min-height: 46px;
  margin: 0;
  padding: 0 40px 0 15px;
  border: 1px solid #4b6873;
  border-radius: 9px;
  background-color: #0c1d2b;
  color: #f5ffff;
  font-size: 15px;
  font-weight: 500;
  line-height: normal;
  text-align: left;
  text-align-last: left;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23e6f6f3' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 15px 15px;
}
.teams-tool-layout .tool-card select::-ms-expand { display: none; }
.teams-tool-layout .tool-row { align-items: end; }
.teams-tool-layout .tool-row > div { min-width: 0; }
.teams-tool-layout .tool-card > label,
.teams-tool-layout .tool-row label { line-height: 1.35; }
.teams-tool-layout .team > .side { height: 46px; min-height: 46px; margin: 0 0 9px; }
.teams-tool-layout .team > .teamName { height: 46px; min-height: 46px; margin: 0 0 9px; padding: 0 15px; }
.teams-tool-layout .tool-card select:hover:not(:disabled) { border-color: #7ba39f; }
.teams-tool-layout .tool-card select:focus-visible { border-color: #9fe9d1; outline: 2px solid #9fe9d1; outline-offset: 2px; }
.teams-tool-layout .tool-card select:disabled { opacity: .65; cursor: not-allowed; }
@media (max-width: 480px) {
  .teams-tool-layout .tool-card select { height: 46px; min-height: 46px; font-size: 14px; }
}

/* Keep the editable quote centered and sized to its wrapped lines. */
.motion-single-layout .motion-quote-frame #motion {
  field-sizing: content;
  min-height: 0;
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(2.5rem, 7vw, 4.75rem);
  text-align: center;
  font-size: clamp(1.65rem, 4.15vw, 3.65rem);
  overflow: hidden;
  resize: none;
}
.motion-quote-frame :is(.motion-quote-open, .motion-quote-close) {
  font-size: clamp(2.4rem, 4.5vw, 4rem);
}
.motion-quote-frame .motion-quote-open {
  top: .65rem;
  left: .8rem;
}
.motion-quote-frame .motion-quote-close {
  right: .8rem;
  bottom: -.1rem;
}
