/* ============================================================
   Oracle AI Agent Studio — single page UI
   ============================================================ */

:root{
  --sidebar-w: 316px;
  --sidebar-w-collapsed: 76px;

  --sidebar-bg: #02090d;
  --sidebar-item: #cfdde1;
  --sidebar-item-hover: #0b2129;
  --sidebar-active-bg: #0b2a33;

  --bg-deep: #02161d;
  --panel-bg: #072530;
  --panel-bg-2: #0a2f3b;

  --line: #1b3b46;
  --line-soft: #16323c;

  --text: #eaf3f5;
  --text-dim: #a9c0c7;
  --text-mute: #7f9aa3;

  --oracle-red: #c74634;
  --amber: #f2ae3c;
  --teal: #37b6c4;

  --font-sans: "Oracle Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Source Serif 4", "Oracle Serif", Georgia, "Times New Roman", serif;
  --font-mono: "Roboto Mono", ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after{ box-sizing: border-box; }

html, body{ height: 100%; }

body{
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

button, input, textarea{ font-family: inherit; color: inherit; }

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}

.app{
  display: flex;
  height: 100vh;
  width: 100%;
}

/* ============================================================
   SIDEBAR
   ============================================================ */

.sidebar{
  flex: 0 0 var(--sidebar-w);
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: flex-basis .22s ease, width .22s ease;
  z-index: 5;
}

.app.is-collapsed .sidebar{
  flex-basis: var(--sidebar-w-collapsed);
  width: var(--sidebar-w-collapsed);
}

.sidebar__head{
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 22px;
  flex: 0 0 auto;
}

.collapse-btn{
  background: none;
  border: 0;
  color: #c3d4d9;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  display: flex;
  transition: background .15s ease, color .15s ease, transform .22s ease;
}
.collapse-btn:hover{ background: rgba(255,255,255,.07); color: #fff; }
.app.is-collapsed .collapse-btn{ transform: rotate(180deg); }

.nav{
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding-top: 4px;
}
.nav::-webkit-scrollbar{ width: 8px; }
.nav::-webkit-scrollbar-thumb{ background: #16323c; border-radius: 8px; }

.nav__item{
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 58px;        /* one height whether or not there's an eyebrow */
  padding: 8px 20px 8px 25px;
  color: var(--sidebar-item);
  text-decoration: none;
  font-size: 15.5px;
  letter-spacing: .1px;
  white-space: nowrap;
  border-left: 4px solid transparent;
  transition: background .14s ease, color .14s ease;
}
.nav__item:hover{ background: var(--sidebar-item-hover); color: #fff; }
.nav__item[hidden]{ display: none; }   /* beats the flex display above */

.nav__item.is-active{
  background: var(--sidebar-active-bg);
  border-left-color: var(--oracle-red);
  color: #fff;
  font-weight: 600;
}

.nav__icon{
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d5e3e7;
}
.nav__icon svg{ width: 22px; height: 22px; display: block; }
.nav__item.is-active .nav__icon{ color: var(--oracle-red); }

.nav__label{
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* the Oracle label drops to an eyebrow above the portfolio meaning, so the
   real label is the only thing that competes for the eye — same pattern the
   workspace cards use for their eyebrow + title pairs */
.nav__strike{
  display: block;
  margin-bottom: 1px;
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: .01em;
  color: #6f8b95;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.nav__item.is-active .nav__strike{ color: #86a3ad; }

.title-strike{
  display: block;
  margin-bottom: 3px;
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--text-mute);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.nav__ext{
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  color: #9db4bb;
  margin-left: 4px;
}
.nav__ext svg{ width: 15px; height: 15px; display: block; }

.app.is-collapsed .nav__label,
.app.is-collapsed .nav__ext,
.app.is-collapsed .sidebar__foot-label{
  opacity: 0;
  pointer-events: none;
}

.sidebar__foot{
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 22px 26px 29px;
  border-top: 1px solid transparent;
  color: inherit;
  text-decoration: none;
}
.sidebar__foot:hover .sidebar__foot-label{ color: #fff; }
.sidebar__foot:hover .dots-btn{ background: #1f4250; color: #fff; }

.sidebar__foot-label{
  font-size: 14.5px;
  font-weight: 700;
  color: #dbe7ea;
  letter-spacing: .2px;
  white-space: nowrap;
}

.dots-btn{
  flex: 0 0 auto;
  width: 32px;
  height: 30px;
  display: grid;
  place-items: center;
  background: #16303a;
  border: 0;
  border-radius: 5px;
  color: #d6e5e9;
  cursor: pointer;
  transition: background .15s ease;
}
.dots-btn:hover{ background: #1f4250; }

/* ============================================================
   MAIN + PAGES
   ============================================================ */

.main{
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  background:
    radial-gradient(120% 95% at 46% -12%, #12546b 0%, #0a3846 34%, #052632 62%, #02161d 100%),
    #02161d;
}

.main::before{ /* faint dotted texture */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(160,205,220,.075) 1px, transparent 1px);
  background-size: 7px 7px;
  opacity: .5;
  pointer-events: none;
}

.page{
  position: absolute;
  inset: 0;
  display: none;
  overflow: auto;
}
.page.is-active{ display: block; animation: pageIn .26s ease-out; }

@keyframes pageIn{
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce){
  .page.is-active{ animation: none; }
}

/* ---------- decorative artwork ---------- */

.art{
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(62%, 1180px);
  pointer-events: none;
  overflow: hidden;
}

.art__glow{
  position: absolute;
  right: -6%;
  top: 4%;
  width: 88%;
  height: 88%;
  background: radial-gradient(closest-side, rgba(126,196,222,.30), rgba(126,196,222,0) 72%);
  filter: blur(12px);
}

.art__svg{
  position: absolute;
  right: -4%;
  top: 0;
  height: 100%;
  width: 108%;
}

/* the supplied artwork, layered over the drawn one — if the file is missing
   nothing paints and the SVG below simply shows through */
.art__photo{
  position: absolute;
  inset: -4%;                       /* bleed, so drifting never bares an edge */
  z-index: 1;
  background-image: url("assets/hero-bg.png");
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
}

/* once it has loaded there is no point painting the SVG underneath, and the
   supplied art is a full banner — texture left, glow centre, petals right —
   so it spans the hero rather than the right-hand strip the SVG occupied */
.art.has-photo{ width: 100%; }
.art.has-photo .art__svg,
.art.has-photo .art__glow{ display: none; }

@media (prefers-reduced-motion: no-preference){
  .art__photo{
    animation: heroDrift 46s ease-in-out infinite alternate;
    will-change: transform;
  }
}

@keyframes heroDrift{
  0%   { transform: translate3d(0, 0, 0) scale(1.03); }
  100% { transform: translate3d(-20px, -13px, 0) scale(1.09); }
}

/* ---------- drifting artwork ----------
   these use the individual `translate` property rather than `transform`,
   so the motion composes with each group's own transform attribute
   instead of overwriting the position it was drawn at */

@media (prefers-reduced-motion: no-preference){
  .art__shape{ animation: driftA 34s ease-in-out infinite; will-change: translate; }
  .art__shape--b{ animation: driftB 27s ease-in-out infinite; animation-delay: -7s; }
  .art__shape--c{ animation: driftC 41s ease-in-out infinite; animation-delay: -15s; }
  .art__shape--d{ animation: driftD 24s ease-in-out infinite; animation-delay: -4s; }

  .art__glow{ animation: artGlow 17s ease-in-out infinite; }
  .fleck{ animation: fleckDrift 17s linear infinite; }
}

/* each form travels its own way and at its own pace, so the group
   separates into layers as it moves */
@keyframes driftA{
  0%, 100% { translate: 0 0; }
  50%      { translate: -11px -17px; }
}
@keyframes driftB{
  0%, 100% { translate: 0 0; }
  50%      { translate: 13px -11px; }
}
@keyframes driftC{
  0%, 100% { translate: 0 0; }
  50%      { translate: -9px 15px; }
}
@keyframes driftD{
  0%, 100% { translate: 0 0; }
  50%      { translate: 11px 13px; }
}

@keyframes artGlow{
  0%, 100% { opacity: .82; }
  50%      { opacity: 1; }
}

/* particles streaming off the blob, laid over the artwork — the petals
   themselves are baked into the image and cannot move on their own */
.art__flecks{
  position: absolute;
  inset: 0;
  z-index: 3;              /* above the mobile veil */
  overflow: hidden;
  pointer-events: none;
}

.fleck{
  position: absolute;
  border-radius: 999px;
}

@media (prefers-reduced-motion: no-preference){
  .fleck{ animation: fleckDrift 17s linear infinite; }
}

/* flecks stream away from the blob and fade, then loop */
@keyframes fleckDrift{
  0%   { translate: 0 0;           opacity: 0; }
  12%  { opacity: 1; }
  72%  { opacity: .9; }
  100% { translate: -170px -104px; opacity: 0; }
}


/* ---------- hero ---------- */

.hero{
  position: relative;
  z-index: 2;
  max-width: 1180px;
  /* the reference sits the greeting ~31% down the viewport */
  padding: clamp(72px, 27vh, 262px) 48px 60px 84px;
}

.hero__greeting{
  margin: 0 0 10px;
  font-size: clamp(20px, 1.55vw, 29px);
  font-weight: 400;
  color: #eef6f8;
  letter-spacing: .2px;
}

.hero__title{
  margin: 0 0 34px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(30px, 3.2vw, 50px);
  line-height: 1.1;
  letter-spacing: -.5px;
  color: #fff;
}

/* ---------- ask box ---------- */

.ask{
  position: relative;
  width: min(100%, 1042px);
  min-height: 150px;
  background: rgba(6, 42, 53, .72);
  border: 1px solid #2a5a68;
  border-radius: 8px;
  padding: 20px 62px 20px 22px;
  backdrop-filter: blur(3px);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.ask:focus-within{
  border-color: #4e93a5;
  box-shadow: 0 0 0 1px rgba(78,147,165,.45);
}

/* ---------- PB wordmark ----------
   replaces the Oracle oval everywhere it appeared, in the same red */

.gsearch__brand,
.fab__mark{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: .015em;
  line-height: 1;
  color: var(--oracle-red);
  white-space: nowrap;
}

.gsearch__brand::before,
.fab__mark::before{ content: "PB"; }

/* the chat interface keeps Oracle's oval mark */
.ask__brand{
  position: absolute;
  left: 22px;
  top: 22px;
  width: 26px;
  height: 15px;
  border: 3px solid var(--oracle-red);
  border-radius: 999px;
}

.ask__input{
  display: block;
  width: 100%;
  min-height: 110px;
  max-height: 260px;
  padding: 0 0 0 40px;
  background: none;
  border: 0;
  outline: none;
  resize: none;
  font-size: 16.5px;
  line-height: 1.5;
  color: #eaf5f7;
  overflow-y: auto;
}
.ask__input::placeholder{ color: #cfe0e5; }

.ask__send{
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #5d7178;
  color: #cfe0e5;
  cursor: not-allowed;
  transition: background .15s ease, color .15s ease;
}
.ask__send.is-ready{
  background: #e7f2f5;
  color: #0a2a33;
  cursor: pointer;
}
.ask__send.is-ready:hover{ background: #fff; }

/* once a conversation is running, the headline yields room to the thread */

.hero__greeting,
.hero__title{ transition: font-size .25s ease, margin .25s ease; }

.hero.is-chatting{ padding-top: clamp(38px, 6vh, 74px); }
.hero.is-chatting .hero__greeting{ font-size: 15px; margin-bottom: 4px; }
.hero.is-chatting .hero__title{
  font-size: clamp(22px, 2.3vw, 32px);
  margin-bottom: 18px;
}
.hero.is-chatting .thread__list{ max-height: 50vh; }

/* ---------- conversation thread ---------- */

.thread{
  width: min(100%, 1042px);
  margin: 0 0 14px;
  padding: 15px 16px 12px;
  background: rgba(4, 34, 43, .74);
  border: 1px solid #24505d;
  border-radius: 8px;
  backdrop-filter: blur(3px);
}

.thread__list{
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-height: 42vh;
  overflow-y: auto;
  padding-right: 4px;
}
.thread__list::-webkit-scrollbar{ width: 7px; }
.thread__list::-webkit-scrollbar-thumb{ background: #1e414c; border-radius: 7px; }

.msg{ display: flex; align-items: flex-start; gap: 11px; }

.msg__mark{
  flex: 0 0 24px;
  width: 24px;
  height: 14px;
  margin-top: 4px;
  border: 2px solid var(--oracle-red);
  border-radius: 999px;
}

.msg__body{
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: #e6f2f4;
  overflow-wrap: anywhere;
}
.msg__body strong{ color: #fff; font-weight: 600; }
.msg__body a{ color: var(--teal); }
.msg__body a:hover{ color: #5fd7e2; }

.msg--user{ justify-content: flex-end; }
.msg--user .msg__body{
  flex: 0 1 auto;
  max-width: 78%;
  padding: 9px 14px;
  background: #0f3a47;
  border: 1px solid #24505d;
  border-radius: 10px 10px 2px 10px;
}

.msg--error .msg__body{ color: #e8897c; font-size: 13.5px; }

.typing{ display: inline-flex; align-items: center; gap: 5px; height: 22px; }
.typing span{
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7fb6c9;
  animation: typingDot 1.1s infinite ease-in-out;
}
.typing span:nth-child(2){ animation-delay: .16s; }
.typing span:nth-child(3){ animation-delay: .32s; }
@keyframes typingDot{
  0%, 60%, 100% { opacity: .3; transform: translateY(0); }
  30%           { opacity: 1;  transform: translateY(-3px); }
}

.thread__clear{
  margin-top: 11px;
  padding: 2px 0;
  background: none;
  border: 0;
  color: #8fa8b0;
  font-size: 12.5px;
  cursor: pointer;
}
.thread__clear:hover{ color: #fff; text-decoration: underline; }

@media (prefers-reduced-motion: reduce){
  .typing span{ animation: none; opacity: .6; }
}

/* ---------- chips + suggestions ---------- */

.chips{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 14px;
  min-height: 26px;
}

.chip{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 26px;
  padding: 0 10px 0 12px;
  border: 1px solid #4a7d8b;
  border-radius: 3px;
  background: rgba(8, 46, 58, .55);
  font-size: 13.5px;
  color: #dff0f4;
}

.chip__x{
  background: none;
  border: 0;
  padding: 0;
  font-size: 13px;
  line-height: 1;
  color: #cfe3e8;
  cursor: pointer;
}
.chip__x:hover{ color: #fff; }

.suggestions{ display: flex; flex-direction: column; gap: 11px; }
.suggestions__row{ display: flex; flex-wrap: wrap; gap: 11px; }

.pill{
  height: 38px;
  padding: 0 21px;
  border: 1px solid #3e7484;
  border-radius: 999px;
  background: rgba(6, 38, 48, .45);
  color: #e4f1f4;
  font-size: 14.5px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, transform .12s ease;
}
.pill:hover{
  background: rgba(20, 80, 98, .75);
  border-color: #67aabb;
}
.pill:active{ transform: translateY(1px); }

/* ============================================================
   CREDENTIALS PAGE
   ============================================================ */

.page--credentials,
.page--doc{ background: linear-gradient(180deg, #04202a 0%, #021a22 100%); }

.cred{
  max-width: 1180px;
  padding: 34px 48px 80px 44px;
}

.cred__title{
  margin: 0 0 20px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: .2px;
  color: #fff;
}

.tabs{
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}

.tab{
  position: relative;
  background: none;
  border: 0;
  padding: 0 2px 12px;
  font-size: 15px;
  color: #cadde2;
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s ease;
}
.tab:hover{ color: #fff; }

.tab.is-active{ color: var(--amber); font-weight: 500; }
.tab.is-active::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 3px;
  background: var(--amber);
  border-radius: 2px 2px 0 0;
}

.panel{
  max-width: 830px;
  padding: 26px 30px 34px;
  background: rgba(255,255,255,.028);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
}

.panel__title{
  margin: 0 0 22px;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

/* checkbox */

.check{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  margin-bottom: 22px;
}
.check input{
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.check__box{
  width: 20px;
  height: 20px;
  border: 1.5px solid #4d7d8a;
  border-radius: 3px;
  display: grid;
  place-items: center;
  color: transparent;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.check__box svg{ width: 15px; height: 15px; }
.check input:checked + .check__box{
  border-color: var(--teal);
  color: var(--teal);
}
.check input:focus-visible + .check__box{ box-shadow: 0 0 0 2px rgba(55,182,196,.45); }
.check__label{ font-size: 15.5px; color: #eaf4f6; }

/* accordion */

.accordion{
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255,255,255,.022);
  margin-bottom: 26px;
  overflow: hidden;
}

.accordion__head{
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  transition: background .15s ease;
}
.accordion__head:hover{ background: rgba(255,255,255,.03); }

.accordion__text{ flex: 1 1 auto; min-width: 0; }

.accordion__title{
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
}

.accordion__sub{
  display: block;
  font-size: 13px;
  color: var(--text-mute);
}

.accordion__chev{
  flex: 0 0 auto;
  color: #bcd2d8;
  display: flex;
  transition: transform .2s ease;
}
.accordion__head[aria-expanded="true"] .accordion__chev{ transform: rotate(180deg); }

.accordion__body{
  display: none;
  padding: 2px 22px 18px 20px;
  border-top: 1px solid var(--line-soft);
}
.accordion__body.is-open{ display: block; }
.accordion__body ol{
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.85;
}
.accordion__body strong{ color: #e9f4f6; font-weight: 600; }
.accordion__body code{
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: rgba(255,255,255,.06);
  border-radius: 3px;
  padding: 1px 5px;
}

/* field */

.field{ margin-bottom: 22px; }

.field__label{
  display: block;
  font-size: 14px;
  color: #dcebee;
  margin-bottom: 8px;
}
.req{ color: var(--oracle-red); }

.field__input{
  width: 100%;
  max-width: 396px;
  height: 38px;
  padding: 0 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid #34606d;
  border-radius: 3px;
  font-size: 14px;
  color: #eef7f9;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field__input:focus{
  border-color: #5ea3b5;
  box-shadow: 0 0 0 1px rgba(94,163,181,.4);
}

/* button */

.btn{
  height: 38px;
  padding: 0 18px;
  background: #2c4a53;
  border: 1px solid #3d626d;
  border-radius: 3px;
  font-size: 14px;
  color: #eef7f9;
  cursor: pointer;
  transition: background .15s ease;
  margin-bottom: 26px;
}
.btn:hover{ background: #375c67; }
.btn:active{ background: #24404a; }

/* code block */

.code{
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(0, 0, 0, .22);
  overflow: hidden;
}

.code__head{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px 9px;
}

.code__name{
  font-family: var(--font-mono);
  font-size: 13px;
  color: #dceaee;
}

.code__copy{
  background: none;
  border: 0;
  padding: 3px;
  border-radius: 3px;
  color: #b6cbd1;
  cursor: pointer;
  display: flex;
  transition: background .15s ease, color .15s ease;
}
.code__copy:hover{ background: rgba(255,255,255,.08); color: #fff; }

.code__body{
  margin: 0;
  padding: 4px 16px 18px;
  font-family: var(--font-mono);
  font-size: 12.4px;
  line-height: 1.85;
  color: #cfe2e7;
  white-space: pre;
  overflow-x: auto;
}
.code__body::-webkit-scrollbar{ height: 8px; }
.code__body::-webkit-scrollbar-thumb{ background: #1e414c; border-radius: 8px; }

/* ============================================================
   CV CONTENT — reuses the components above, adds only spacing
   and typography tuned to the same theme tokens
   ============================================================ */

.cred .panel + .panel{ margin-top: 22px; }

.cv-lead{
  max-width: 830px;
  margin: -6px 0 22px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-dim);
}

.cv-body{
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-dim);
}
.cv-body strong{ color: #e9f4f6; font-weight: 600; }

/* profile photo — clipped to the same blob silhouette as the hero artwork */

.profile{
  display: flex;
  align-items: flex-start;
  gap: 30px;
}

.profile__photo{
  flex: 0 0 176px;
  width: 176px;
}

.avatar{
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, .45));
}

.avatar__ring{
  stroke: rgba(126, 196, 222, .40);
  stroke-width: 6;
}

.avatar__initials{
  font-family: var(--font-serif);
  font-size: 200px;
  letter-spacing: 6px;
  fill: rgba(174, 214, 231, .55);
}

.profile__text{ flex: 1 1 auto; min-width: 0; }

.profile__name{
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 400;
  letter-spacing: -.2px;
  margin-bottom: 6px;
}

/* .cv-org sets margin:0 further down the sheet and would win on source order,
   so this needs the extra class to hold */
.profile__text .profile__meta{ margin-bottom: 22px; }

/* panel title with something aligned opposite it */
.panel__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 22px;
}
.panel__head .panel__title{ margin-bottom: 0; }

/* availability status */
.availability{
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 5px 14px 5px 11px;
  background: rgba(55, 182, 196, .12);
  border: 1px solid rgba(55, 182, 196, .40);
  border-radius: 999px;
  font-size: 12.5px;
  letter-spacing: .01em;
  color: #9fe4ec;
}

.availability__dot{
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

@media (prefers-reduced-motion: no-preference){
  .availability__dot{ animation: availPulse 2.6s ease-out infinite; }
}
@keyframes availPulse{
  0%   { box-shadow: 0 0 0 0 rgba(55, 182, 196, .55); }
  70%  { box-shadow: 0 0 0 8px rgba(55, 182, 196, 0); }
  100% { box-shadow: 0 0 0 0 rgba(55, 182, 196, 0); }
}

.profile__actions{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

/* .btn carries a bottom margin for the Credentials form; inside this row it
   would offset the button against the icons, so it is cleared here */
.profile__actions .btn{ margin: 0; }

.btn--primary{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 38px;
  background: #1b4f5e;
  border-color: #2f7182;
  text-decoration: none;
  line-height: 1;
}
.btn--primary:hover{ background: #226275; }

.icon-btn{
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  background: transparent;   /* <button> would otherwise take the UA's light
                                buttonface, making hover look inverted */
  border: 1px solid var(--line);
  border-radius: 3px;
  color: #cadde2;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.icon-btn:hover{ background: rgba(255,255,255,.07); border-color: #2f6070; color: #fff; }

/* responsible-AI disclosure under the chat */
.ai-notice{
  width: min(100%, 1042px);
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-mute);
}

/* role / degree / award header row */

.cv-head{
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 16px;
}
.cv-head > div{ flex: 1 1 auto; min-width: 0; }
.cv-head .panel__title{ margin-bottom: 4px; }

.cv-role{
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.cv-org{
  margin: 0;
  font-size: 14px;
  color: var(--text-mute);
}

.cv-date{
  flex: 0 0 auto;
  font-size: 13.5px;
  color: var(--amber);
  white-space: nowrap;
  padding-top: 2px;
}
.cv-date--ok{ color: var(--teal); }

.cv-item{
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
}
.cv-item:first-of-type{ border-top: 0; padding-top: 2px; }
.cv-item .cv-head{ margin-bottom: 0; }

/* bullet lists */

.cv-list{
  margin: 0;
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text-dim);
}
.cv-list li{ margin-bottom: 9px; }
.cv-list li:last-child{ margin-bottom: 0; }
.cv-list strong{ color: #e9f4f6; font-weight: 600; }

/* tag rows — the suggestion pill, made non-interactive */

.cv-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}
.cv-group .cv-tags{ margin-top: 0; }

.pill--static{
  height: 32px;
  padding: 0 15px;
  font-size: 13.5px;
  line-height: 30px;
  cursor: default;
  display: inline-block;
}
.pill--static:hover{
  background: rgba(20, 80, 98, .55);
  border-color: #5695a7;
}
.pill--static:active{ transform: none; }

.cv-group{ margin-bottom: 26px; }
.cv-group:last-child{ margin-bottom: 0; }
.cv-group__title{
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* stacked checkbox rows on the Policy page */

.cv-checks{ display: flex; flex-direction: column; gap: 18px; }
.cv-checks .check{ margin-bottom: 0; align-items: flex-start; }
.cv-checks .check__box{ margin-top: 1px; }

.cv-note{
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-style: normal;
  line-height: 1.6;
  color: var(--text-mute);
}

/* document rows */

.cv-doc{
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
}
.cv-doc:first-of-type{ border-top: 0; padding-top: 0; }
.cv-doc__name{
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}
.cv-doc__desc{
  display: block;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-mute);
}

/* ============================================================
   TEMPLATE-GALLERY LAYOUT  (Contact)
   ============================================================ */

.cred--wide{ max-width: 1320px; }

.gsearch{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 26px;
}

.gsearch__box{
  display: flex;
  align-items: center;
  gap: 11px;
  width: min(340px, 100%);
  height: 38px;
  padding: 0 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid #34606d;
  border-radius: 3px;
  transition: border-color .15s ease;
}
.gsearch__box:focus-within{ border-color: #5ea3b5; }

.gsearch__brand{
  flex: 0 0 auto;
  font-size: 13px;
}

.gsearch__input{
  flex: 1 1 auto;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  font-size: 13px;
  color: #e6f2f4;
}
.gsearch__input::placeholder{ color: #8fa8b0; }

.gchip{
  height: 32px;
  padding: 0 15px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: #dbe9ec;
  font-size: 13px;
  cursor: pointer;
  transition: background .15s ease;
}
.gchip:hover{ background: rgba(255,255,255,.11); }

.gallery{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
}

.gallery__empty{
  margin: 22px 2px 0;
  font-size: 13.5px;
  color: var(--text-mute);
}

.tcard{
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,.032);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  overflow: hidden;
  transition: border-color .15s ease, background .15s ease;
}
.tcard:hover{ border-color: #2f6070; background: rgba(255,255,255,.055); }

.tcard__body{
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 15px 16px 18px;
}

.tcard__top{
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 13px;
}

.tcard__badge{
  padding: 3px 8px;
  border-radius: 3px;
  background: #14707a;
  color: #eafcff;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .02em;
}

.tcard__cat{ font-size: 11.5px; color: var(--text-mute); }

.tcard__main{ display: flex; gap: 12px; align-items: flex-start; }
.tcard__text{ flex: 1 1 auto; min-width: 0; }

.tcard__title{
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}

.tcard__desc{
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-dim);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tcard__art{
  flex: 0 0 84px;
  width: 84px;
  height: 84px;
  border-radius: 3px;
  overflow: hidden;
}
.tcard__art svg{ display: block; width: 100%; height: 100%; }

.tcard__foot{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  padding: 12px 14px;
  border-top: 1px solid var(--line-soft);
  background: rgba(255,255,255,.022);
}

.tcard__btn{
  padding: 7px 15px;
  background: #1b3f4a;
  border: 1px solid #2b5a68;
  border-radius: 3px;
  color: #e6f2f4;
  font-size: 12.5px;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease;
}
.tcard__btn:hover{ background: #245362; }

/* the secondary of the pair */
.tcard__btn--ghost{
  background: transparent;
  border-color: var(--line);
  color: #cadde2;
}
.tcard__btn--ghost:hover{ background: rgba(255,255,255,.07); border-color: #2f6070; }

.tcard__icon{
  background: none;
  border: 0;
  padding: 4px;
  color: #a8c2c9;
  cursor: pointer;
  display: flex;
}
.tcard__icon:hover{ color: #fff; }

@media (max-width: 1400px){ .gallery{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1080px){ .gallery{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px){
  .gallery{ grid-template-columns: 1fr; }
  .gsearch__box{ width: 100%; }
}

/* link cards — blog posts, repositories, newsletter issues */

.link-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(298px, 100%), 1fr));
  gap: 16px;
}
.panel .link-grid + .embed,
.panel .embed + .embed,
.panel .embed + .link-grid,
.panel .btn + .embed{ margin-top: 16px; }

.link-card{
  display: flex;
  flex-direction: column;
  padding: 17px 18px 15px;
  background: rgba(255,255,255,.028);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
}
.link-card:hover{ background: rgba(255,255,255,.055); border-color: #2f6070; }

.link-card__meta{
  margin-bottom: 9px;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.link-card__title{
  margin-bottom: 8px;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
}

.link-card__desc{
  flex: 1 1 auto;
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dim);
}

.link-card__tags{
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}
.link-card__tags .pill--static{ height: 26px; padding: 0 12px; font-size: 12px; line-height: 24px; }

.link-card__cta{ font-size: 12.5px; color: var(--teal); }
.link-card:hover .link-card__cta{ color: #5fd7e2; }

/* ---------- article reader ---------- */

.post__bar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line-soft);
}

.post__back{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 11px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: #cadde2;
  font-size: 13px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.post__back:hover{ background: rgba(255,255,255,.07); border-color: #2f6070; color: #fff; }

.post__share{ display: flex; align-items: center; gap: 8px; }
.post__share-label{
  margin-right: 2px;
  font-size: 11.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* the reading column — measure kept near 70 characters */
.post{ max-width: 68ch; }

.post__kicker{
  margin: 0 0 10px;
  font-size: 11.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.post__title{
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.22;
  color: #fff;
}

.post__lead{
  margin: 0 0 26px;
  font-size: 16.5px;
  line-height: 1.66;
  color: #d3e5ea;
}

.post h4{
  margin: 34px 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.post p{
  margin: 0 0 17px;
  font-size: 15px;
  line-height: 1.78;
  color: var(--text-dim);
}

.post ul{
  margin: 0 0 20px;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.78;
  color: var(--text-dim);
}
.post li{ margin-bottom: 9px; }
.post li::marker{ color: #5f93a3; }
.post strong{ color: #e9f4f6; font-weight: 600; }

.post blockquote{
  margin: 26px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid #cf9457;
  font-family: var(--font-serif);
  font-size: 16.5px;
  line-height: 1.6;
  color: #e8f2f4;
}

.post__figure{ margin: 26px 0 28px; }
.post__figure img{
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  background: rgba(255,255,255,.03);
}
.post__figure figcaption{
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-mute);
}

@media (max-width: 760px){
  .post__bar{ margin-bottom: 20px; }
  .post__share-label{ display: none; }
  .post__lead{ font-size: 15.5px; }
  .post h4{ margin-top: 26px; }
}

/* embed slots — paste the platform's iframe inside */

.embed{
  border: 1px dashed #2f5d6b;
  border-radius: 4px;
  background: rgba(0,0,0,.2);
  overflow: hidden;
}
.embed iframe{ display: block; width: 100%; border: 0; }
/* once a real embed is pasted in, drop the placeholder's dashed outline */
.embed:has(iframe){ border-style: solid; border-color: var(--line); background: transparent; }

/* two embeds side by side, matched to a single row height */
.embed-row{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.panel .link-grid + .embed-row{ margin-top: 16px; }
.embed-row .embed{ height: 420px; }
.embed-row .embed + .embed{ margin-top: 0; }
.embed-row .embed iframe{ height: 100%; }

@media (max-width: 760px){
  .embed-row{ grid-template-columns: 1fr; }
  .embed-row .embed{ height: 380px; }
}
.embed__note{
  margin: 0;
  padding: 22px 20px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-mute);
}
.embed__note strong{ color: #cadde2; font-weight: 600; }

/* metric tiles */

.cv-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(224px, 100%), 1fr));
  gap: 14px;
}

.stat{
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255,255,255,.022);
}
.stat__value{
  display: block;
  font-family: var(--font-serif);
  font-size: 34px;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 8px;
}
.stat__label{
  display: block;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-mute);
}

/* stacked accordions */

.panel .accordion + .accordion{ margin-top: -6px; }
.panel .accordion:last-child{ margin-bottom: 0; }

/* section heading between panels */

.cred__section{
  margin: 34px 0 14px;
  font-size: 19px;
  font-weight: 700;
  color: #fff;
}
.panel--spaced{ margin-top: 22px; }

/* ============================================================
   DESIGN-TO-SOURCE WORKSPACE  (Applications)
   ============================================================ */

.page--flush{
  overflow: hidden;
  background: linear-gradient(180deg, #04202a 0%, #021a22 100%);
}

.dts{ display: flex; height: 100%; }

.dts__main{
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  overflow-y: auto;
  padding: 22px 26px 44px;
}

.dts__art{
  position: absolute;
  top: 0;
  right: 0;
  width: min(54%, 620px);
  height: 232px;
  overflow: hidden;
  pointer-events: none;
}
.dts__art svg{ width: 100%; height: 100%; display: block; }

.dts__head{ position: relative; z-index: 2; margin-bottom: 14px; }
.dts__title{ margin: 0 0 6px; font-size: 17px; font-weight: 700; color: #fff; }
.dts__sub{ margin: 0; font-size: 11.5px; color: var(--text-mute); }

.dts__ask{
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  max-width: 640px;
  padding: 0 12px 0 5px;
  margin-bottom: 24px;
  background: #02161d;
  border: 1px solid #17323b;
  border-radius: 4px;
}

.dts__ask-panel{
  flex: 0 0 24px;
  height: 24px;
  display: grid;
  place-items: center;
  background: #0b2129;
  border: 0;
  border-radius: 3px;
  color: #cfe1e6;
  cursor: pointer;
}

.dts__ask-brand{
  flex: 0 0 auto;
  width: 19px;
  height: 11px;
  border: 2px solid var(--oracle-red);
  border-radius: 999px;
}

.dts__ask-input{
  flex: 1 1 auto;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  font-size: 12.5px;
  color: #e6f2f4;
}
.dts__ask-input::placeholder{ color: #b9ced4; }

.dts__ask-tools{ display: flex; gap: 13px; color: #9db4bb; }

.dts__plan{
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin-bottom: 24px;
  padding-left: 16px;
  border-left: 3px solid #cf9457;
}
.dts__plan-title{
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.2;
  color: #fff;
}
.dts__plan-body{
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1.62;
  color: #e8f2f4;
}

.dts__cards{
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: 20px;
  align-items: start;
}

.ws-card{
  background: #062630;
  border: 1px solid #123039;
  border-radius: 6px;
  padding: 18px 18px 20px;
}

.ws-card__eyebrow{
  position: relative;
  margin: 0 0 16px;
  padding-bottom: 9px;
  font-size: 11px;
  color: #dbe9ec;
}
.ws-card__eyebrow::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 2px;
  background: #c0703c;
  border-radius: 2px;
}

.ws-card__title{ margin: 0 0 9px; font-size: 15.5px; font-weight: 700; color: #fff; }
.ws-card__lede{ margin: 0 0 16px; font-size: 11.5px; line-height: 1.6; color: #91aab2; }

/* BOM table */

.bom{ width: 100%; border-collapse: collapse; font-size: 12px; }
.bom th{
  padding: 0 10px 10px;
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  color: #dbe9ec;
  border-bottom: 1px solid #143741;
}
.bom td{
  padding: 9px 10px;
  color: #cfe0e5;
  border-bottom: 1px solid #0f2c35;
}
.bom tr:last-child td{ border-bottom: 0; }
.bom__thumb-col{ width: 54px; }

.bom__thumb{
  display: block;
  width: 40px;
  height: 30px;
  border-radius: 4px;
  background: #eef3f5;
  overflow: hidden;
}
.bom__thumb svg{ width: 100%; height: 100%; display: block; }

.bom__id{ color: #e9f3f5; }

.qty{
  display: inline-block;
  min-width: 46px;
  padding: 3px 10px;
  text-align: center;
  border-radius: 999px;
  background: #b7d3a4;
  color: #1d3018;
  font-size: 11.5px;
  font-weight: 600;
}
.qty--low{ background: #efb0a3; color: #3b1410; }

/* negotiations */

.neg__row{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #0f2c35;
}

.neg__body{ flex: 1 1 auto; min-width: 0; }

.neg__meta{
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 5px;
  font-size: 10.5px;
}
.neg__meta--critical{ color: #e8897c; }
.neg__meta--medium{ color: #e0b063; }

.neg__dot{
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid currentColor;
}
.neg__tri{
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 9px solid currentColor;
}

.neg__title{ margin: 0 0 4px; font-size: 12.5px; font-weight: 700; color: #fff; }
.neg__desc{ margin: 0 0 5px; font-size: 11px; line-height: 1.5; color: #91aab2; }
.neg__state{ margin: 0; font-size: 10.5px; color: #7f9aa3; }

.tagpill{
  flex: 0 0 auto;
  padding: 4px 13px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: #b7d3a4;
  color: #1d3018;
}
.tagpill--critical{ background: #efb0a3; color: #3b1410; }
.tagpill--medium{ background: #e8c37e; color: #3a2a08; }
.tagpill--mini{ padding: 2px 8px; font-size: 9px; }

.ws-btn{
  margin-top: 16px;
  padding: 8px 14px;
  background: #123742;
  border: 1px solid #24505d;
  border-radius: 3px;
  color: #e6f2f4;
  font-size: 11.5px;
  cursor: pointer;
}
.ws-btn:hover{ background: #174755; }

/* right rail */

.dts__rail{
  flex: 0 0 300px;
  overflow-y: auto;
  padding: 18px 16px 40px;
  background: #02161d;
  border-left: 1px solid #102a33;
}

.rail__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.rail__title{ font-size: 12.5px; font-weight: 700; color: #e9f3f5; }
.rail__theme{ background: none; border: 0; color: #9db4bb; cursor: pointer; padding: 2px; display: flex; }

.rail__card{
  padding: 12px;
  margin-bottom: 12px;
  background: #072731;
  border: 1px solid #143943;
  border-radius: 5px;
}

.rail__card-top{ display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.rail__kind{ flex: 1 1 auto; font-size: 10.5px; color: #b9ced4; }
.rail__x{ background: none; border: 0; padding: 0; color: #c8dde2; cursor: pointer; display: flex; }
.rail__x:hover{ color: #fff; }

.rail__card-title{ margin: 0 0 5px; font-size: 12px; font-weight: 700; line-height: 1.35; color: #fff; }
.rail__card-desc{ margin: 0 0 12px; font-size: 10.5px; line-height: 1.5; color: #8fa8b0; }

.rail__btn{
  width: 100%;
  padding: 8px;
  background: #0f3a47;
  border: 1px solid #1e4b59;
  border-radius: 3px;
  color: #e3f1f4;
  font-size: 11px;
  cursor: pointer;
}
.rail__btn:hover{ background: #14495a; }

.rail__section{ margin: 22px 0 12px; font-size: 12.5px; font-weight: 700; color: #e9f3f5; }

.mail{
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  margin-bottom: 10px;
  text-align: left;
  background: #072731;
  border: 1px solid #143943;
  border-radius: 5px;
  cursor: pointer;
}
.mail:hover{ background: #0a3140; }

.mail__icon{
  flex: 0 0 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: #0f3a47;
  border-radius: 5px;
  color: #cfe4e9;
}
.mail__text{ flex: 1 1 auto; min-width: 0; }
.mail__kind{ display: block; font-size: 9.5px; color: #8fa8b0; }
.mail__title{
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mail__desc{
  display: block;
  font-size: 10.5px;
  color: #8fa8b0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mail__chev{ flex: 0 0 auto; color: #9db4bb; display: flex; }

/* ============================================================
   POLICY FLOW CANVAS  (Policy)
   ============================================================ */

.flow{
  display: flex;
  flex-direction: column;
  height: 100%;
  background:
    radial-gradient(110% 80% at 28% 0%, #0d4155 0%, #062730 48%, #03191f 100%);
}

.flow__top{
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px 12px;
}

.flow__badge{
  flex: 0 0 22px;
  height: 22px;
  display: grid;
  place-items: center;
  background: #0f3a47;
  border-radius: 4px;
  color: #bcd9e2;
}

.flow__heading{ flex: 1 1 auto; min-width: 0; }
.flow__title{ margin: 0 0 3px; font-size: 15px; font-weight: 700; color: #fff; }
.flow__desc{ margin: 0; font-size: 11px; color: #8fa8b0; }

.flow__tools{
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tool{
  width: 28px;
  height: 26px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  border-radius: 4px;
  color: #cfe1e6;
  cursor: pointer;
}
.tool svg{ width: 17px; height: 17px; }
.tool:hover{ background: rgba(255,255,255,.08); }
.tool.is-on{ background: #0f3a47; color: #fff; }

.tool__group{
  display: flex;
  gap: 2px;
  padding: 2px;
  margin: 0 3px;
  background: rgba(255,255,255,.05);
  border-radius: 5px;
}

.flow__canvas{
  position: relative;
  flex: 1 1 auto;
  overflow: hidden;
}

/* holds the wires and nodes so a wide horizontal row can scroll
   without dragging the properties panel along with it */
.flow__stage{ position: absolute; inset: 0; }

.flow__canvas.is-horizontal .flow__stage{
  overflow-x: auto;
  overflow-y: hidden;
}
.flow__canvas.is-horizontal .flow__stage::-webkit-scrollbar{ height: 5px; }
.flow__canvas.is-horizontal .flow__stage::-webkit-scrollbar-thumb{ background: #1e414c; border-radius: 5px; }

.flow__wires{
  position: absolute;
  left: 0;
  top: 0;
  width: 700px;
  height: 520px;
  overflow: visible;
}

/* nodes shrink into a compact row when laid out left to right */
.is-horizontal .node{ min-width: 0; width: 196px; }
.is-horizontal .node__text{ padding: 9px 11px; }
.is-horizontal .node__title{ font-size: 12px; }
.is-horizontal .node__date{ display: block; margin: 2px 0 0; }
.is-horizontal .node__type{ font-size: 10px; }
.is-horizontal .node--start{ width: 34px; }

/* nodes */

.node{
  position: absolute;
  display: flex;
  align-items: stretch;
  min-width: 202px;
  padding: 0;
  background: #0e3140;
  border: 1px solid #235466;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,.38);
  transition:
    border-color .15s ease,
    box-shadow .15s ease,
    left .42s cubic-bezier(.22,1,.36,1),
    top .42s cubic-bezier(.22,1,.36,1),
    width .42s cubic-bezier(.22,1,.36,1);
}
.node:hover{ border-color: #3a7f96; }

.node__icon{
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border-radius: 7px 0 0 7px;
  color: #fff;
}
.node__icon--llm{ background: linear-gradient(160deg, #e2934f 0%, #c4652f 100%); }
.node__icon--vars{ background: linear-gradient(160deg, #a173c9 0%, #7a4da6 100%); }
.node__icon--policy{ background: linear-gradient(160deg, #dc84ad 0%, #b45586 100%); }

.node__text{ padding: 9px 18px 9px 13px; }
.node__title{ display: block; font-size: 12.5px; font-weight: 700; color: #fff; }
.node__type{ display: block; margin-top: 2px; font-size: 10.5px; color: #9db3ba; }

.node__date{
  margin-left: 9px;
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: .02em;
  color: #86a6b0;
  white-space: nowrap;
}

.node.is-selected{
  border-color: #3fd0c9;
  box-shadow: 0 0 0 1px #3fd0c9, 0 0 20px rgba(63,208,201,.35), 0 6px 18px rgba(0,0,0,.38);
}

.node--start{
  width: 34px;
  height: 34px;
  min-width: 0;
  display: grid;
  place-items: center;
  background: #1c5f7c;
  border-color: #2f82a1;
  border-radius: 50%;
  color: #fff;
}
.node--start:hover{ background: #24779b; }

/* play / stop toggle */
.node__stop{ display: none; }
.node--start.is-running .node__play{ display: none; }
.node--start.is-running .node__stop{ display: block; }

.node--start.is-running{
  background: #14707a;
  border-color: #3fd0c9;
  animation: startPulse 1.7s ease-out infinite;
}
@keyframes startPulse{
  0%   { box-shadow: 0 0 0 0 rgba(63,208,201,.45); }
  70%  { box-shadow: 0 0 0 13px rgba(63,208,201,0); }
  100% { box-shadow: 0 0 0 0 rgba(63,208,201,0); }
}

/* the node currently executing */
.node.is-active{ animation: nodeEnter .75s cubic-bezier(.22,1,.36,1); }
@keyframes nodeEnter{
  0%   { transform: scale(.96); }
  55%  { transform: scale(1.025); }
  100% { transform: scale(1); }
}

/* connector being traced */
.wire{ transition: stroke .45s ease; }
.wire.is-flowing{ stroke: #3fd0c9; }

@media (prefers-reduced-motion: reduce){
  .node--start.is-running{ animation: none; }
  .node.is-active{ animation: none; }
}

/* properties panel */

.props{
  position: absolute;
  right: 0;
  top: 6px;
  bottom: 0;
  z-index: 5;
  width: min(46%, 470px);
  display: flex;
  flex-direction: column;
  background: #052731;
  border: 1px solid #143943;
  border-right: 0;
  border-radius: 6px 0 0 0;
}

.props[hidden]{ display: none; }

.props__bar{
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 8px 12px 2px;
}
.props__icon{ background: none; border: 0; padding: 2px; color: #a8c2c9; cursor: pointer; display: flex; }
.props__icon:hover{ color: #fff; }

.props__body{ flex: 1 1 auto; overflow-y: auto; padding: 6px 16px 26px; }

.pf{ margin-bottom: 14px; }

.pf__label{ display: block; margin-bottom: 5px; font-size: 11px; color: #cfe1e6; }

.pf__help{
  display: inline-grid;
  place-items: center;
  width: 12px;
  height: 12px;
  border: 1px solid #4b7280;
  border-radius: 50%;
  font-size: 8px;
  line-height: 1;
  color: #9db4bb;
  vertical-align: 1px;
}
.pf__type{ margin-left: 7px; font-size: 10px; color: #8fa8b0; }

.pf__input{
  width: 100%;
  height: 30px;
  padding: 0 10px;
  background: #0a2b35;
  border: 1px solid #24505d;
  border-radius: 3px;
  font-size: 12px;
  color: #e6f2f4;
  outline: none;
}
.pf__input:focus{ border-color: #4a8fa3; }
.pf__input::placeholder{ color: #7f9aa3; }
.pf__input--expr{ font-family: var(--font-mono); font-size: 11px; }

.pf__select{ position: relative; }
.pf__select .pf__input{ padding-right: 32px; }
.pf__select--clear .pf__input{ padding-right: 54px; }

.pf__chev,
.pf__clear{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #a8c2c9;
  display: flex;
  pointer-events: none;
}
.pf__chev{ right: 9px; }
.pf__clear{ right: 31px; }

.props__group{ margin: 20px 0 12px; font-size: 12px; font-weight: 700; color: #fff; }

/* responsibilities card — the workspace card at the panel's own type scale */
.props .ws-card{ padding: 14px 16px 15px; }
.props .cv-list{
  padding-left: 16px;
  font-size: 12px;
  line-height: 1.65;
}
.props .cv-list li{ margin-bottom: 7px; }
.props .cv-list li::marker{ color: #5f93a3; }

/* horizontal layout on desktop: the flow runs across the top and the
   responsibilities panel spans the full width beneath it */
@media (min-width: 901px){
  .flow__canvas.is-horizontal .flow__stage{
    bottom: auto;
    height: 218px;
  }

  .flow__canvas.is-horizontal .props{
    left: 0;
    right: 0;
    top: 218px;
    bottom: 0;
    width: auto;
    border-right: 1px solid #143943;
    border-radius: 6px 6px 0 0;
  }

  .flow__canvas.is-horizontal .props__body{ padding: 8px 22px 22px; }

  /* the two fields share one row, the bullets flow into columns */
  .flow__canvas.is-horizontal .pf{
    display: inline-block;
    width: min(320px, 46%);
    margin-right: 18px;
    vertical-align: top;
  }
  .flow__canvas.is-horizontal .props .cv-list{
    column-width: 330px;
    column-gap: 36px;
  }
  .flow__canvas.is-horizontal .props .cv-list li{ break-inside: avoid; }
}

/* bottom drawer */

.flow__drawer{
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 4;
  width: 58px;
  height: 22px;
  display: grid;
  place-items: center;
  background: #0b2e3a;
  border: 1px solid #1b4655;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  color: #cfe1e6;
  cursor: pointer;
}
.flow__drawer:hover{ background: #113b4a; }
.flow__drawer[aria-expanded="true"] svg{ transform: rotate(180deg); }

.flow__tray{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  z-index: 2;
  padding: 14px 18px 16px;
  background: #03202a;
  border-top: 1px solid #143943;
}
.flow__tray-title{ margin: 0 0 8px; font-size: 11.5px; font-weight: 700; color: #e9f3f5; }
.flow__tray-body{
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.85;
  color: #cfe2e7;
  white-space: pre;
  overflow-x: auto;
}

/* ============================================================
   FAB
   ============================================================ */

.fab{
  position: absolute;
  right: 0;
  bottom: 0;
  width: 56px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--oracle-red);
  border: 0;
  border-radius: 6px 0 0 0;
  cursor: pointer;
  z-index: 6;
  transition: filter .15s ease;
}
.fab:hover{ filter: brightness(1.1); }

.fab__mark{
  font-size: 16px;
  color: #fff;              /* sits on the red button */
}

/* ============================================================
   TOAST
   ============================================================ */

.toast{
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translate(-50%, 20px);
  padding: 10px 18px;
  background: #0c333f;
  border: 1px solid #2c5c69;
  border-radius: 4px;
  font-size: 14px;
  color: #eaf5f7;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 30;
}
.toast.is-visible{ opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1280px){
  .hero{ padding-left: 56px; padding-right: 40px; }
  .art{ width: 58%; opacity: .9; }
}

@media (max-width: 1024px){
  :root{ --sidebar-w: 250px; }
  .hero{ padding-left: 36px; }
  .cred{ padding-left: 28px; padding-right: 28px; }
  .art{ opacity: .55; }
}

@media (max-width: 1120px){
  .page--flush{ overflow: auto; }
  .dts{ height: auto; flex-direction: column; }
  .dts__main{ overflow: visible; }
  .dts__rail{
    flex: 0 0 auto;
    overflow: visible;
    border-left: 0;
    border-top: 1px solid #102a33;
  }
}

@media (max-width: 900px){
  .flow{ height: auto; min-height: 100%; }

  /* nodes stay absolute here, so reserve their height as padding and let
     the now-static panel flow underneath instead of on top of them */
  .flow__canvas{ overflow: visible; min-height: 0; padding-top: 470px; }
  .flow__stage{ height: 470px; bottom: auto; }
  .flow__canvas.is-horizontal .flow__stage{ height: 470px; }

  .props{
    position: static;
    width: auto;
    margin: 14px 12px 0;
    border-right: 1px solid #143943;
    border-radius: 6px;
  }
  .props__body{ overflow: visible; }
  .flow__drawer, .flow__tray{ display: none; }
}

/* the canvas cannot hold absolutely-placed nodes on a phone:
   stack them into a vertical flow and keep the connector line */
@media (max-width: 760px){
  .flow__top{ flex-wrap: wrap; padding: 12px 14px 10px; }

  /* the canvas title and description cost too much room on a phone;
     the badge is that heading's icon, so it goes with them rather than
     sitting alone on a wasted row above the toolbar */
  .flow__heading,
  .flow__badge{ display: none; }

  .flow__tools{
    flex: 1 1 auto;
    width: auto;
    margin-top: 0;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }
  .flow__tools::-webkit-scrollbar{ height: 4px; }
  .flow__tools::-webkit-scrollbar-thumb{ background: #1e414c; border-radius: 4px; }
  .tool{ flex: 0 0 auto; }

  .flow__canvas{
    position: static;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
    padding: 6px 14px 76px;   /* no reserved node area once they stack */
  }

  /* the stage steps out of the way so nodes stack as flex items */
  .flow__stage{ display: contents; }

  .flow__wires{ display: none; }

  .node{
    position: relative;
    /* the canvas coordinates live in inline styles, so they need overriding */
    left: auto !important;
    top: auto !important;
    width: 100%;
    min-width: 0;
  }
  .node__text{ padding: 10px 12px; }
  .node__title{ white-space: normal; }
  .node__date{ display: block; margin: 3px 0 0; }

  /* connector between stacked nodes */
  .node:not(.node--start)::before{
    content: "";
    position: absolute;
    left: 23px;
    top: -17px;
    width: 2px;
    height: 17px;
    background: #55889a;
  }

  .node--start{ width: 34px; flex: 0 0 auto; align-self: flex-start; }

  .props{ margin: 2px 0 0; }
  .props__body{ padding: 6px 14px 20px; }
  .props .cv-list{ font-size: 12.5px; }

  /* the selected node already names the role — drop the form fields */
  .props .pf{ display: none; }
  .props__group{ margin-top: 2px; }
}

@media (max-width: 760px){
  :root{ --sidebar-w: var(--sidebar-w-collapsed); }

  /* the rail is lifted out of the flex row and pinned, so opening the menu
     slides it over the page instead of reflowing everything underneath */
  .sidebar{
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-w-collapsed);
    flex-basis: auto;
    z-index: 30;
    transition: width .24s ease;
  }
  .main{ margin-left: var(--sidebar-w-collapsed); }

  .app.is-menu-open .sidebar{
    width: min(278px, 82vw);
    box-shadow: 0 0 44px rgba(0,0,0,.62);
  }

  .nav__label, .nav__ext, .sidebar__foot-label{ display: none; }

  .app.is-menu-open .nav__label,
  .app.is-menu-open .nav__ext,
  .app.is-menu-open .sidebar__foot-label{
    display: block;
    opacity: 1;                 /* beats the desktop collapse rule */
    pointer-events: auto;
  }

  .app.is-menu-open .scrim{
    display: block;
    position: fixed;
    inset: 0;
    z-index: 25;
    background: rgba(0, 8, 12, .58);
  }

  /* chevron points the way it will move */
  .collapse-btn{ transform: rotate(180deg); }
  .app.is-menu-open .collapse-btn{ transform: none; }

  .sidebar__foot{ justify-content: center; }
  .app.is-menu-open .sidebar__foot{ justify-content: space-between; }
  /* the artwork fills the screen, zoomed into the blob and petals, with a
     veil over it so the hero text stays legible against the bright areas */
  .art{ display: block; }
  .art.has-photo{ width: 100%; }

  .art__photo{ background-position: 88% center; }   /* crop onto the petals */

  /* dark only where the headline sits, then it clears so the artwork reads */
  .art::after{
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
      180deg,
      rgba(2, 20, 27, .80) 0%,
      rgba(2, 20, 27, .62) 20%,
      rgba(2, 20, 27, .30) 52%,
      rgba(2, 20, 27, .38) 100%
    );
  }

  /* the prompts now sit over bright artwork, so they carry their own ground */
  .pill,
  .chip{ background: rgba(4, 26, 34, .84); }

  /* the floating PB button sits in the corner, so give every scroll
     container room to scroll clear of it */
  .hero{ padding: 56px 22px 76px; }
  .cred{ padding: 24px 20px 76px; }
  .panel{ padding: 20px 16px 26px; }
  /* tab rows scroll sideways instead of squeezing their labels */
  .tabs{
    gap: 18px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .tabs::-webkit-scrollbar{ height: 3px; }
  .tabs::-webkit-scrollbar-thumb{ background: #1e414c; border-radius: 3px; }
  .tab{ flex: 0 0 auto; font-size: 14px; }
  .tab.is-active::after{ bottom: 0; }

  /* design-to-delivery workspace */
  .dts__main{ padding: 18px 16px 76px; }
  .dts__rail{ padding: 16px 16px 76px; }
  .dts__art{ width: 76%; height: 172px; opacity: .45; }
  .dts__title{ font-size: 16px; }
  .dts__plan{ padding-left: 13px; }
  .dts__plan-title{ font-size: 21px; }
  .ws-card{ padding: 16px 14px 17px; }
  .ws-card__title{ font-size: 14.5px; }

  /* the card blurbs cost more height than they earn on a phone —
     the eyebrow, title and the pills themselves carry the meaning */
  .ws-card__lede{ display: none; }
  .ws-card__title{ margin-bottom: 16px; }

  /* the disclosure keeps its meaning, loses its qualifiers */
  .ai-notice__long{ display: none; }
  .ai-notice{ font-size: 11.5px; }

  /* "Open to opportunities" — short enough to share the line with the title */
  .availability__long{ display: none; }
  .availability{
    font-size: 11.5px;
    gap: 7px;
    padding: 4px 11px 4px 9px;
  }
  .panel__head{ gap: 8px 12px; margin-bottom: 18px; }

  /* link + template cards */
  .link-card{ padding: 15px 15px 14px; }
  .tcard__art{ flex-basis: 68px; width: 68px; height: 68px; }

  .cv-head{ flex-direction: column; gap: 6px; }
  .cv-date{ padding-top: 0; }
  .profile{ flex-direction: column; gap: 20px; }
  .profile__photo{ flex-basis: 132px; width: 132px; }
}
