/* ============================================================
   ORLA, the application-email robot
   Apple-inspired: system type, calm greys, frosted glass, large
   titles, pill buttons, segmented controls and spring motion.
   Scoped with the ol- prefix so nothing else on the site changes.
   ============================================================ */
:root {
  --ol-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Inter", system-ui, sans-serif;
  --ol-label: #1d1d1f;
  --ol-label-2: #6e6e73;
  --ol-label-3: #86868b;
  --ol-fill: #f5f5f7;
  --ol-fill-2: #e8e8ed;
  --ol-sep: rgba(60, 60, 67, 0.14);
  --ol-accent: var(--teal, #007b72);
  --ol-accent-2: #005c55;
  --ol-tint: rgba(0, 123, 114, 0.1);
  --ol-green: #1f8f4e;
  --ol-orange: #b25e00;
  --ol-red: #c4281c;
  --ol-glass: rgba(255, 255, 255, 0.74);
  --ol-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --ol-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ol-shadow: 0 1px 1px rgba(0, 0, 0, 0.03), 0 8px 28px rgba(0, 0, 0, 0.07);
  --ol-shadow-lg: 0 24px 60px -12px rgba(0, 0, 0, 0.28), 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ---------- shared controls ---------- */
.ol, .ol-float, .ol-sheet-wrap { font-family: var(--ol-font); color: var(--ol-label); -webkit-font-smoothing: antialiased; letter-spacing: -0.01em; }
.ol button, .ol-float button, .ol-sheet-wrap button, .ol select, .ol-float select, .ol textarea, .ol input { font-family: inherit; }
.ol-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 36px; padding: 0 18px; border-radius: 980px; border: 0; cursor: pointer;
  font-size: 14px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
  background: var(--ol-accent); color: #fff;
  transition: transform 0.25s var(--ol-spring), background 0.2s, opacity 0.2s, box-shadow 0.2s;
}
.ol-btn:hover { background: var(--ol-accent-2); }
.ol-btn:active { transform: scale(0.97); }
.ol-btn:focus-visible, .ol-seg button:focus-visible, .ol-orb:focus-visible, .ol-switch input:focus-visible + span { outline: 3px solid rgba(0, 123, 114, 0.4); outline-offset: 2px; }
.ol-btn[disabled] { opacity: 0.4; cursor: not-allowed; transform: none; }
.ol-btn.ol-2 { background: var(--ol-tint); color: var(--ol-accent-2); }
.ol-btn.ol-2:hover { background: rgba(0, 123, 114, 0.16); }
.ol-btn.ol-3 { background: transparent; color: var(--ol-accent); padding: 0 10px; }
.ol-btn.ol-3:hover { background: var(--ol-fill); }
.ol-btn.ol-danger { background: transparent; color: var(--ol-red); padding: 0 10px; }
.ol-btn.ol-lg { min-height: 44px; padding: 0 24px; font-size: 15px; }
.ol-seg { display: inline-flex; padding: 2px; border-radius: 9px; background: var(--ol-fill-2); gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.ol-seg::-webkit-scrollbar { display: none; }
.ol-seg button { border: 0; background: transparent; border-radius: 7px; padding: 6px 14px; font-size: 13px; font-weight: 500; color: var(--ol-label); cursor: pointer; white-space: nowrap; transition: background 0.25s var(--ol-spring), box-shadow 0.25s; }
.ol-seg button[aria-pressed="true"] { background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12), 0 3px 1px rgba(0, 0, 0, 0.04); }
.ol-seg button small { color: var(--ol-label-2); font-weight: 400; margin-left: 4px; }
.ol-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 980px; font-size: 12px; font-weight: 500; background: var(--ol-fill); color: var(--ol-label-2); }
.ol-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.8; }
.ol-pill.ok { background: rgba(31, 143, 78, 0.1); color: var(--ol-green); }
.ol-pill.wait { background: rgba(178, 94, 0, 0.1); color: var(--ol-orange); }
.ol-pill.bad { background: rgba(196, 40, 28, 0.08); color: var(--ol-red); }
.ol-switch { position: relative; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-size: 14px; }
.ol-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ol-switch span { position: relative; width: 51px; height: 31px; border-radius: 16px; background: var(--ol-fill-2); transition: background 0.25s; flex: none; }
.ol-switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15), 0 3px 1px rgba(0, 0, 0, 0.06); transition: transform 0.35s var(--ol-spring); }
.ol-switch input:checked + span { background: #34c759; }
.ol-switch input:checked + span::after { transform: translateX(20px); }
.ol-field { display: grid; gap: 6px; font-size: 13px; color: var(--ol-label-2); }
.ol-select, .ol-input, .ol-textarea {
  width: 100%; border: 1px solid var(--ol-sep); border-radius: 10px; background: #fff; color: var(--ol-label);
  font-size: 14px; padding: 9px 12px; transition: border-color 0.2s, box-shadow 0.2s;
}
.ol-select:focus, .ol-input:focus, .ol-textarea:focus { outline: none; border-color: var(--ol-accent); box-shadow: 0 0 0 4px rgba(0, 123, 114, 0.14); }
.ol-textarea { min-height: 340px; line-height: 1.55; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; resize: vertical; }
.ol-note { font-size: 13px; color: var(--ol-label-2); line-height: 1.45; margin: 0; }
.ol-note.warn { color: var(--ol-orange); }
.ol-note.bad { color: var(--ol-red); }
.ol-toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 95; transform: translate(-50%, 20px); opacity: 0;
  padding: 12px 18px; border-radius: 14px; background: rgba(29, 29, 31, 0.9); color: #fff; font: 500 14px/1.35 var(--ol-font);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: var(--ol-shadow-lg);
  transition: transform 0.45s var(--ol-spring), opacity 0.3s; max-width: min(92vw, 460px); text-align: center; pointer-events: none;
}
.ol-toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- the ORLA mark ---------- */
.ol-mark { position: relative; width: 44px; height: 44px; flex: none; border-radius: 13px; overflow: hidden;
  background: linear-gradient(160deg, #ffffff 0%, #eef6f5 55%, #d6ecea 100%); box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 92, 85, 0.18); }
.ol-mark svg { width: 100%; height: 100%; display: block; }
.ol-mark.big { width: 72px; height: 72px; border-radius: 20px; }
.ol-eye { transform-box: fill-box; transform-origin: center; animation: ol-blink 5.5s infinite; }
.ol-eye.r { animation-delay: 0.06s; }
@keyframes ol-blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(0.12); } }

/* ---------- floating companion ---------- */
.ol-float { position: fixed; right: 22px; bottom: 100px; z-index: 61; transition: bottom 0.45s var(--ol-spring); }
.ol-float.solo { bottom: 22px; }
.ol-float.left { right: auto; left: 22px; }
.ol-orb {
  position: relative; width: 56px; height: 56px; border: 0; padding: 0; cursor: pointer; border-radius: 17px;
  background: var(--ol-glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.8), 0 0 0 0.5px rgba(0, 0, 0, 0.08), 0 10px 28px rgba(0, 0, 0, 0.16);
  transition: transform 0.45s var(--ol-bounce), box-shadow 0.3s; animation: ol-float 6s ease-in-out infinite; touch-action: none;
}
.ol-orb:hover { transform: translateY(-2px) scale(1.05); }
.ol-orb:active { transform: scale(0.94); }
.ol-orb .ol-mark { position: absolute; inset: 6px; width: auto; height: auto; border-radius: 12px; }
.ol-orb .ol-dot { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--ol-accent); color: #fff; border: 2px solid #fff; font: 600 11px/16px var(--ol-font); text-align: center; }
.ol-orb .ol-dot.wait { background: #ff9f0a; }
.ol-orb[data-mood="sent"] { animation: ol-hop 0.7s var(--ol-bounce) 2; }
.ol-orb[data-mood="sent"] .ol-plane { opacity: 1; transform: translate(10px, -10px); }
.ol-plane { opacity: 0; transition: opacity 0.2s, transform 0.6s var(--ol-spring); }
@keyframes ol-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -3px; } }
@keyframes ol-hop { 0%, 100% { translate: 0 0; } 40% { translate: 0 -10px; } }
.ol-pop {
  position: absolute; right: 0; bottom: 70px; width: min(380px, calc(100vw - 28px)); max-height: min(620px, calc(100vh - 150px));
  display: flex; flex-direction: column; border-radius: 22px; overflow: hidden;
  background: rgba(250, 250, 252, 0.86); -webkit-backdrop-filter: saturate(180%) blur(28px); backdrop-filter: saturate(180%) blur(28px);
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.1), var(--ol-shadow-lg);
  transform-origin: bottom right; transform: scale(0.9) translateY(12px); opacity: 0; pointer-events: none;
  transition: transform 0.5s var(--ol-spring), opacity 0.25s;
}
.ol-float.left .ol-pop { right: auto; left: 0; transform-origin: bottom left; }
.ol-float.open .ol-pop { transform: none; opacity: 1; pointer-events: auto; }
.ol-pop-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 12px; border-bottom: 0.5px solid var(--ol-sep); }
.ol-pop-head b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.ol-pop-head small { display: block; font-size: 12px; color: var(--ol-label-2); margin-top: 1px; }
.ol-pop-head .ol-x { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--ol-fill-2); color: var(--ol-label-2); cursor: pointer; font-size: 16px; line-height: 1; }
.ol-pop-body { padding: 14px 16px 16px; overflow-y: auto; display: grid; gap: 12px; }
.ol-pop-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 16px; border-top: 0.5px solid var(--ol-sep); font-size: 12px; color: var(--ol-label-2); }
.ol-pop-foot a { color: var(--ol-accent); text-decoration: none; font-weight: 500; }

/* ---------- page ---------- */
.ol { display: grid; gap: 20px; max-width: 1180px; }
.ol-hero { display: flex; align-items: center; gap: 20px; padding: 28px; border-radius: 24px; background: linear-gradient(135deg, #fbfbfd 0%, #f0f7f6 100%); box-shadow: inset 0 0 0 0.5px var(--ol-sep); flex-wrap: wrap; }
.ol-hero h2 { margin: 0; font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; font-family: var(--ol-font); }
.ol-hero p { margin: 6px 0 0; color: var(--ol-label-2); font-size: 15px; max-width: 560px; line-height: 1.45; }
.ol-hero-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.ol-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.ol-col { display: grid; gap: 20px; }
.ol-card { background: #fff; border-radius: 20px; padding: 22px; box-shadow: var(--ol-shadow); border: 0.5px solid rgba(0, 0, 0, 0.04); min-width: 0; }
.ol-card h3 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; font-family: var(--ol-font); }
.ol-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.ol-card-head p { margin: 2px 0 0; font-size: 13px; color: var(--ol-label-2); }
.ol-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ol-steps { display: grid; gap: 0; margin: 4px 0 14px; }
.ol-step { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 8px 0; position: relative; }
.ol-step i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 600; background: var(--ol-fill-2); color: var(--ol-label-2); z-index: 1; }
.ol-step.done i { background: var(--ol-green); color: #fff; }
.ol-step.now i { background: #ff9f0a; color: #fff; }
.ol-step:not(:last-child)::before { content: ""; position: absolute; left: 11.5px; top: 30px; bottom: -8px; width: 1px; background: var(--ol-sep); }
.ol-step b { display: block; font-size: 14px; font-weight: 500; }
.ol-step small { display: block; font-size: 12px; color: var(--ol-label-2); margin-top: 1px; }

/* email preview: looks like the employer's inbox */
.ol-mail { border-radius: 14px; box-shadow: inset 0 0 0 0.5px var(--ol-sep); overflow: hidden; background: #fff; }
.ol-mail-head { padding: 14px 16px; background: var(--ol-fill); display: grid; gap: 4px; font-size: 13px; color: var(--ol-label-2); }
.ol-mail-head strong { color: var(--ol-label); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.ol-mail-body { padding: 18px 18px 8px; max-height: 560px; overflow: auto; }
.ol-mail-body ul { list-style: disc; }
.ol-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 16px; }
.ol-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 9px; background: var(--ol-fill); font-size: 12px; color: var(--ol-label); max-width: 100%; }
.ol-chip svg { width: 14px; height: 14px; flex: none; color: var(--ol-red); }
.ol-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ol-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--ol-label-2); margin: 10px 0 0; }
.ol-banner { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: 12px; background: rgba(255, 159, 10, 0.12); color: #8a4b00; font-size: 13px; margin-bottom: 12px; flex-wrap: wrap; }

/* attachments */
.ol-slots { display: grid; gap: 10px; }
.ol-slot { display: grid; grid-template-columns: 1fr; gap: 6px; }
.ol-slot label { font-size: 13px; font-weight: 500; color: var(--ol-label); }
.ol-slot label em { font-style: normal; color: var(--ol-label-3); font-weight: 400; }

/* employers list */
.ol-list { display: grid; border-radius: 14px; box-shadow: inset 0 0 0 0.5px var(--ol-sep); overflow: hidden; }
.ol-emp { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; background: #fff; }
.ol-emp + .ol-emp { border-top: 0.5px solid var(--ol-sep); }
.ol-emp input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--ol-accent); }
.ol-emp b { display: block; font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ol-emp small { display: block; font-size: 12px; color: var(--ol-label-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ol-emp select { font-size: 12px; padding: 4px 8px; margin-top: 4px; max-width: 100%; }
.ol-emp.blocked { opacity: 0.55; }
.ol-emp .ol-pill { font-size: 11px; }
.ol-empty { padding: 26px 18px; text-align: center; color: var(--ol-label-2); font-size: 14px; background: var(--ol-fill); border-radius: 14px; line-height: 1.5; }
.ol-empty a { color: var(--ol-accent); font-weight: 500; }
.ol-sendbar { position: sticky; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0 0; background: linear-gradient(transparent, #fff 30%); flex-wrap: wrap; }
.ol-progress { height: 4px; border-radius: 2px; background: var(--ol-fill-2); overflow: hidden; }
.ol-progress i { display: block; height: 100%; width: 0; background: var(--ol-accent); transition: width 0.5s var(--ol-spring); }

/* log */
.ol-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ol-table th { text-align: left; font-weight: 500; color: var(--ol-label-2); padding: 8px 10px; border-bottom: 0.5px solid var(--ol-sep); white-space: nowrap; }
.ol-table td { padding: 10px; border-bottom: 0.5px solid var(--ol-sep); vertical-align: top; }
.ol-table-wrap { overflow-x: auto; }

/* confirmation sheet */
.ol-sheet-wrap { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, 0.28); opacity: 0; transition: opacity 0.25s; }
.ol-sheet-wrap.show { opacity: 1; }
.ol-sheet { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; border-radius: 22px; padding: 24px; background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(180%) blur(30px); backdrop-filter: saturate(180%) blur(30px); box-shadow: var(--ol-shadow-lg);
  transform: scale(0.94) translateY(16px); transition: transform 0.5s var(--ol-spring); }
.ol-sheet-wrap.show .ol-sheet { transform: none; }
.ol-sheet h3 { margin: 0 0 6px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; font-family: var(--ol-font); }
.ol-sheet dl { display: grid; grid-template-columns: 96px 1fr; gap: 8px 12px; margin: 16px 0; font-size: 14px; }
.ol-sheet dt { color: var(--ol-label-2); }
.ol-sheet dd { margin: 0; word-break: break-word; }
.ol-sheet .ol-recips { max-height: 160px; overflow: auto; padding: 8px 12px; border-radius: 12px; background: var(--ol-fill); font-size: 13px; line-height: 1.6; }
.ol-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 14px 0 18px; line-height: 1.4; }
.ol-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--ol-accent); flex: none; }
.ol-sheet .ol-row { justify-content: flex-end; }

/* Arya embed */
.ol-embed { margin: 18px 0; }
.ol-embed .ol-card { display: grid; gap: 14px; }
.ol-embed-head { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.ol-embed-head div { flex: 1; min-width: 200px; }
.ol-embed-head b { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; display: block; }
.ol-embed-head small { font-size: 13px; color: var(--ol-label-2); }

@media (max-width: 920px) { .ol-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .ol-hero { padding: 20px; }
  .ol-card { padding: 18px; border-radius: 18px; }
  .ol-float { right: 14px; bottom: 92px; }
  .ol-float.solo { bottom: 14px; }
  .ol-sheet dl { grid-template-columns: 1fr; gap: 2px; }
  .ol-sheet dd { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .ol-orb, .ol-eye, .ol-orb[data-mood="sent"] { animation: none; }
  .ol-pop, .ol-sheet, .ol-toast, .ol-switch span::after { transition-duration: 0.01s; }
}
@media print { .ol-float, .ol-toast { display: none; } }
.ol-quick-list{max-height:280px;overflow:auto;border:1px solid var(--line);padding:12px;border-radius:10px;margin-block:12px}
.ol-quick-row{display:flex;align-items:center;gap:8px;padding:8px 0}
.ol-quick-row span{flex:1;min-width:0;overflow-wrap:anywhere}
.ol-quick-row small{display:block;font-size:12px}
.ol-quick-row select{max-width:45%}
@media(max-width:480px){.ol-quick-row{flex-wrap:wrap}.ol-quick-row select{max-width:100%;width:100%}}
