:root {
  color-scheme: dark;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #f6f1e8;
  background: #15151a;
  --panel: #202027;
  --line: #3b3942;
  --muted: #c3bcc2;
  --yellow: #ffcf48;
  --blue: #bdd6fd;
  --green: #c8e8d9;
  --pink: #ffc6b8;
  --max: 58rem;
}

*, *::before, *::after { box-sizing: border-box; }
body { min-width: 280px; margin: 0; }
button, input, select, textarea { font: inherit; }
button, input, select, textarea, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
[hidden] { display: none !important; }

.topbar {
  max-width: var(--max);
  margin: 0 auto;
  padding: max(.75rem, env(safe-area-inset-top)) clamp(1rem, 4vw, 2rem) .65rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .6rem;
  border-bottom: 1px solid var(--line);
}
.wordmark, .text-button {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: none;
  color: inherit;
  border: 0;
  padding: .3rem 0;
  min-height: 44px;
  font-weight: 760;
}
.text-button { color: var(--blue); font-size: .86rem; }
.brand-mark {
  background: var(--yellow);
  border-radius: 50%;
  width: 1.65rem;
  height: 1.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.brand-mark span { width: 2px; border-radius: 2px; background: #22202b; height: 45%; transform: rotate(19deg); }
.brand-mark span:nth-child(2) { height: 63%; }

main {
  max-width: var(--max);
  margin: auto;
  padding: clamp(1.05rem, 4vw, 2rem) clamp(1rem, 4vw, 2rem) 1.6rem;
  outline: none;
}
footer { text-align: center; padding: .1rem 1rem max(1rem, env(safe-area-inset-bottom)); font-size: .78rem; }
footer a { color: var(--muted); text-underline-offset: .18em; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.65rem, 6vw, 2.65rem); line-height: 1.06; letter-spacing: -.055em; }
h2 { font-size: clamp(1.25rem, 4.2vw, 1.65rem); line-height: 1.15; letter-spacing: -.035em; }
h3 { font-size: 1.03rem; line-height: 1.2; }
p { line-height: 1.53; }
.muted { color: var(--muted); }
.accent { color: var(--yellow); }
.eyebrow { color: var(--yellow); font-size: .75rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.stack { display: grid; gap: 1rem; }
.tight { display: grid; gap: .5rem; }
.section-head { display: grid; gap: .4rem; }
.action-row { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; }
.action-row > .button { flex: 0 1 auto; }

.hero {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 4vw, 2rem);
  min-height: 17rem;
  background: linear-gradient(128deg, #242933, #1c2029 70%);
  border: 1px solid #414a57;
  border-radius: 1.2rem;
  padding: clamp(1.1rem, 4vw, 1.8rem);
}
.hero-copy { display: grid; gap: .7rem; }
.hero h1 { font-size: clamp(1.9rem, 5.7vw, 2.65rem); }
.hero p:not(.eyebrow) { max-width: 43ch; color: var(--muted); }
.scene-photo {
  aspect-ratio: 1122 / 467;
  border: 1px solid #526171;
  border-radius: .7rem;
  background-color: #293445;
  background-image: url(kariyer-sahneleri.png);
  background-repeat: no-repeat;
  background-size: 100% 300%;
}
.scene-orientation { background-position: center top; }
.scene-change { background-position: center center; }
.scene-delivery { background-position: center bottom; }
.brief {
  display: grid;
  grid-template-columns: minmax(9rem, .8fr) 1.6fr;
  align-items: center;
  gap: .85rem;
  border: 1px solid #414a57;
  border-radius: .85rem;
  padding: .55rem;
  background: #232834;
}
.brief-copy { display: grid; gap: .25rem; padding: .25rem .25rem .25rem 0; font-size: .92rem; }

.button {
  border-radius: .65rem;
  border: 1px solid transparent;
  padding: .62rem .9rem;
  min-height: 44px;
  color: inherit;
  font-weight: 780;
  text-align: center;
}
.primary { background: var(--yellow); color: #211906; }
.secondary { background: #292831; border-color: #514f5c; }
.ghost { background: none; border-color: var(--line); color: var(--blue); }
.button:disabled { opacity: .58; cursor: default; }
.icon-button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: .65rem; background: #2a2932; color: inherit; font-size: 1.2rem; }

.panel { border: 1px solid var(--line); background: var(--panel); border-radius: .95rem; padding: clamp(.8rem, 3vw, 1.15rem); }
.info-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }
.info-strip > div { border-top: 2px solid var(--line); padding: .6rem 0 .1rem; }
.info-strip strong { display: block; font-size: 1.13rem; }
.info-strip small { color: var(--muted); font-size: .8rem; }
.setup { max-width: 38rem; }
.setup-row { display: grid; grid-template-columns: 1fr auto; gap: .5rem; align-items: end; }
.field, .search-label { display: grid; gap: .25rem; color: var(--muted); font-size: .83rem; }
input, select, textarea { border: 1px solid #534f60; color: #fff; background: #16161b; border-radius: .55rem; padding: .5rem .65rem; width: 100%; min-height: 44px; }
textarea { resize: vertical; }
.bots-input { max-width: 8rem; }

.weekbar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem .85rem; }
.weekbar .company { color: var(--blue); font-size: .87rem; font-weight: 690; }
progress { width: 100%; height: .34rem; border: 0; color: var(--yellow); border-radius: 99px; overflow: hidden; background-color: #3c3943; }
progress::-webkit-progress-bar { background-color: #3c3943; }
progress::-webkit-progress-value { background-color: var(--yellow); }
progress::-moz-progress-bar { background-color: var(--yellow); }
.week-intro { display: grid; gap: .35rem; }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.skill {
  display: grid;
  gap: .35rem;
  align-content: start;
  text-align: left;
  color: #1f2836;
  background: #d8e2f2;
  border: 2px solid transparent;
  border-radius: .8rem;
  padding: .72rem;
  min-height: 96px;
  overflow-wrap: anywhere;
}
.skill:nth-child(2n) { background: #ded5ec; }
.skill:nth-child(3n) { background: #f1dcca; }
.skill:nth-child(4n) { background: #d0e2d6; }
.skill strong { line-height: 1.16; font-size: .98rem; }
.skill small { color: #36334a; font-size: .79rem; line-height: 1.36; }
.skill[aria-pressed="true"] { border-color: var(--yellow); box-shadow: inset 0 0 0 1px #2e2932; background: #ffe6a6; }
.skill:disabled { filter: saturate(.5); opacity: .65; cursor: default; }
.decision { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; }
.owned { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; font-size: .82rem; }
.chip { display: inline-block; color: var(--blue); background: #272a37; border-radius: .35rem; padding: .18rem .42rem; font-size: .78rem; }
.news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; align-items: start; }
.news-card { display: grid; gap: .53rem; padding: .8rem; border-radius: .85rem; color: #222432; overflow-wrap: anywhere; }
.news-card.good { background: var(--green); }
.news-card.bad { background: var(--pink); }
.news-card strong { font-size: .95rem; }
.news-card p { font-size: .91rem; line-height: 1.38; }
.news-card .skill-note { border-top: 1px solid #27304942; padding-top: .5rem; }
.news-card .result { color: #313e4d; font-size: .81rem; font-weight: 760; }
.news-open { display: grid; place-content: center; gap: .35rem; width: 100%; min-height: 7rem; text-align: center; font-weight: 840; border: 0; }
.news-open small { font-size: .79rem; font-weight: 680; }
.news-open span { font-size: 1.35rem; }
.scoreboard { margin: 0; padding: 0; list-style: none; display: grid; gap: .4rem; }
.scoreboard li { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: .4rem; }
.score-number { font-variant-numeric: tabular-nums; font-weight: 780; color: var(--yellow); }
.metrics { padding: .85rem 0; }
.picked-list { margin: 0; padding-left: 1.3rem; display: grid; gap: .43rem; }
.picked-list li { padding: .1rem 0; }
.picked-name { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.remove-skill { color: var(--blue); border: 0; background: transparent; font-size: .82rem; padding: .45rem .25rem; min-height: 40px; }
.events { display: grid; gap: .45rem; }
.events summary { cursor: pointer; font-weight: 750; }
.events ol { margin: .55rem 0 0; padding-left: 1.4rem; }
.events li { margin: .35rem 0; }

dialog {
  width: min(37rem, calc(100% - 1.2rem));
  max-height: 88vh;
  max-height: 88dvh;
  background: #202027;
  color: inherit;
  border: 1px solid #5e5871;
  border-radius: .95rem;
  padding: 1rem;
}
dialog::backdrop { background: #08070bc9; }
.dialog-head { display: flex; gap: .5rem; justify-content: space-between; align-items: center; margin-bottom: .65rem; }
dialog > p { margin-bottom: .65rem; }
.search-tools { display: grid; grid-template-columns: 1fr minmax(7rem, .65fr); gap: .5rem; margin-bottom: .65rem; }
.library-items { display: grid; gap: .38rem; }
.library-entry { border: 1px solid var(--line); border-radius: .55rem; padding: .55rem; display: grid; gap: .32rem; }
.library-entry summary { cursor: pointer; min-height: 30px; font-weight: 720; }
.library-entry small { color: var(--muted); font-size: .82rem; }
.library-entry .button { justify-self: start; }
#library[open] { display: flex; flex-direction: column; }
#library > :not(.library-items) { flex-shrink: 0; }
#library .library-items { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.starting-count { color: var(--yellow); font-weight: 700; font-size: .87rem; }
.starting-entry { padding: .12rem .5rem; }
.starting-entry label { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .5rem; min-height: 44px; cursor: pointer; }
.starting-entry label > span { display: grid; gap: .14rem; padding: .3rem 0; }
.starting-entry input { width: 1.28rem; height: 1.28rem; min-height: 0; accent-color: var(--yellow); }
.starting-entry input:disabled + span { opacity: .6; }
.starting-chip { border: 1px solid #514f5c; min-height: 44px; padding: .35rem .5rem; text-align: left; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

@media (max-width: 560px) {
  .hero { grid-template-columns: 1fr; gap: .8rem; min-height: auto; padding: .8rem; }
  .hero > .scene-photo { grid-row: 1; }
  .hero .action-row > .button { flex: 1 1 auto; }
  .brief { grid-template-columns: 1fr; gap: .4rem; }
  .brief-copy { padding: .1rem .16rem .25rem; }
  .news-grid.revealed { grid-template-columns: 1fr; }
}

@media (max-width: 350px) {
  .search-tools { grid-template-columns: 1fr; }
  .info-strip { gap: .35rem; }
  .skill { padding: .55rem; }
}
