.account-entry { min-height: 44px; white-space: nowrap; }
.account-entry[hidden], .account-dialog [hidden] { display: none !important; }
.account-dialog {
  width: min(560px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--g2);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--black);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .22);
}
.account-dialog::backdrop { background: rgba(11, 11, 11, .56); }
.account-dialog-inner { padding: clamp(20px, 5vw, 34px); }
.account-dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.account-eyebrow { margin: 0; color: var(--g4); font-size: 11px; letter-spacing: .1em; }
.account-close {
  width: 44px; min-width: 44px; height: 44px; border: 1px solid var(--g2); border-radius: 50%;
  background: var(--paper); color: var(--black); font: 400 26px/1 Inter, sans-serif; cursor: pointer;
}
.account-dialog h2 { margin: 8px 0 20px; font-size: clamp(30px, 7vw, 44px); }
.account-mode { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
.account-mode button, .account-text-button {
  min-height: 44px; padding: 10px 14px; border: 1px solid var(--g2); border-radius: 12px;
  background: var(--paper); color: var(--black); font: 600 13px/1.3 Inter, sans-serif; cursor: pointer;
}
.account-mode button.is-active { border-color: var(--black); background: var(--black); color: var(--white); }
.account-form { display: grid; gap: 16px; }
.account-form label:not(.account-consent) { display: grid; gap: 7px; color: var(--g5); font-size: 13px; font-weight: 600; }
.account-form input:not([type="checkbox"]), .account-form select {
  width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid var(--g2); border-radius: 11px;
  background: var(--paper); color: var(--black); font: 16px/1.35 Inter, sans-serif;
}
.account-form input[type="checkbox"] { width: 22px; min-width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--black); }
.account-consent { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; color: var(--g5); font-size: 12px; line-height: 1.5; cursor: pointer; }
.account-consent strong { color: var(--black); }
.account-domain, .account-hint { margin: 0; color: var(--g4); font-size: 12px; }
.account-submit { min-height: 46px; width: 100%; justify-content: center; }
.account-submit:disabled, .account-text-button:disabled { cursor: wait; opacity: .6; }
.account-text-button { justify-self: start; }
.account-profile-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--black); font-size: 13px; font-weight: 600; text-underline-offset: 4px; }
.account-status { min-height: 1.5em; margin: 16px 0 0; color: var(--g5); font-size: 13px; }
.account-status.is-error { color: var(--black); font-weight: 700; }
.account-public { display: grid; gap: 16px; }
#accountPublicCard { padding-top: 14px; border-top: 1px solid var(--g2); }
.account-public-name { margin: 0; font: 800 28px/1.1 var(--display); text-transform: uppercase; overflow-wrap: anywhere; }
.account-public-dept { margin: 8px 0; color: var(--g5); }
.account-public-xp { margin: 12px 0 0; font: 700 15px var(--mono); }
.account-otp-email { margin: -8px 0 0; color: var(--g5); font-size: 13px; overflow-wrap: anywhere; }

@media (max-width: 520px) {
  .nav-right .xp-pill { display: none; }
  .account-entry { padding-inline: 12px; font-size: 12px; }
  .nav .brand span { font-size: 18px; }
  .account-dialog-inner { padding: 20px 16px; }
  .account-mode button { padding-inline: 8px; font-size: 12px; }
}
@media (max-width: 380px) {
  .nav-right > a[href="#katil"] { display: none; }
}

.profile-dialog[hidden], .profile-dialog [hidden] { display: none !important; }
.profile-dialog {
  width: min(720px, calc(100% - 20px));
  max-width: none;
  max-height: calc(100dvh - 20px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--g2);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--black);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .22);
}
.profile-dialog::backdrop { background: rgba(11, 11, 11, .58); }
.profile-dialog-inner { padding: clamp(20px, 5vw, 32px); }
.profile-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.profile-eyebrow { margin: 0; color: var(--g4); font-size: 11px; letter-spacing: .1em; }
.profile-close {
  width: 44px; min-width: 44px; height: 44px; border: 1px solid var(--g2); border-radius: 50%;
  background: var(--paper); color: var(--black); font: 400 26px/1 Inter, sans-serif; cursor: pointer;
}
.profile-dialog h2 { margin: 8px 0 18px; font-size: clamp(30px, 7vw, 44px); }
.profile-status { margin: 8px 0; color: var(--g5); font-size: 14px; }
.profile-content { min-width: 0; }
.profile-card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--g2); }
.profile-identity { min-width: 0; }
.profile-identity h3 { margin: 0; font: 800 clamp(28px, 7vw, 42px)/1.05 var(--display); text-transform: uppercase; overflow-wrap: anywhere; }
.profile-identity p { margin: 8px 0 0; color: var(--g5); overflow-wrap: anywhere; }
.profile-stat { display: grid; justify-items: end; flex: 0 0 auto; }
.profile-stat strong { font: 800 28px/1 var(--mono); }
.profile-stat span, .profile-label { color: var(--g4); font: 600 10px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.profile-streak { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--g2); }
.profile-streak strong { font: 700 15px var(--mono); }
.profile-block { padding-top: 22px; }
.profile-block h3 { margin: 0 0 12px; font: 800 22px/1 var(--display); text-transform: uppercase; }
.profile-badges, .profile-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.profile-badges { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.profile-badge { min-width: 0; display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--g2); border-radius: 12px; background: rgba(255, 255, 255, .7); }
.profile-badge-icon { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 9px; background: var(--g1); color: var(--black); font-size: 16px; overflow-wrap: anywhere; }
.profile-badge strong, .profile-badge small { display: block; overflow-wrap: anywhere; }
.profile-badge strong { font-size: 13px; }
.profile-badge small { margin-top: 4px; color: var(--g5); font-size: 12px; }
.profile-list-row { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 14px; padding: 12px; border: 1px solid var(--g2); border-radius: 11px; }
.profile-list-row > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.profile-list-row time { color: var(--g4); font: 11px/1.4 var(--mono); overflow-wrap: anywhere; }
.profile-project-row { grid-template-columns: minmax(0, 1fr) auto; }
.profile-external-link { display: inline-flex; align-items: center; min-height: 44px; gap: 6px; color: var(--black); font-size: 13px; font-weight: 600; text-underline-offset: 4px; }
.profile-url-text { grid-column: 1 / -1; margin: 0; color: var(--g4); font-size: 12px; overflow-wrap: anywhere; word-break: break-word; }
.profile-history-value { white-space: nowrap; font: 700 12px var(--mono); }
.profile-empty { padding: 12px; color: var(--g4); font-size: 13px; }

@media (max-width: 420px) {
  .profile-dialog-inner { padding: 20px 16px; }
  .profile-card-head { align-items: flex-start; }
  .profile-list-row { grid-template-columns: minmax(0, 1fr); }
  .profile-project-row { grid-template-columns: minmax(0, 1fr); }
  .profile-external-link { justify-self: start; }
}

/* Compact account navigation */
.account-control { position: relative; }
.account-avatar.btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; background: var(--black); color: var(--white); font: 700 14px/1 Inter, sans-serif; border: 1px solid var(--black); }
.account-avatar[aria-expanded="true"] { outline: 2px solid var(--g4); outline-offset: 3px; }
.account-menu[hidden] { display: none; }
.account-menu { position: absolute; right: 0; top: calc(100% + 14px); z-index: 30; width: min(270px, calc(100vw - 32px)); padding: 12px; background: var(--white); color: var(--black); border: 1px solid var(--g2); border-radius: 18px; box-shadow: 0 16px 48px rgba(0,0,0,.16); }
.account-menu-name { margin: 6px 10px 4px; font-weight: 700; overflow-wrap: anywhere; }
.account-menu-caption { margin: 0 10px 12px; font-size: 12px; color: var(--g5); }
.account-menu a, .account-menu button { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 46px; padding: 12px 10px; background: transparent; border: 0; border-radius: 9px; color: inherit; text-decoration: none; text-align: left; font: 500 14px/1.4 Inter, sans-serif; cursor: pointer; }
.account-menu a:hover, .account-menu button:hover, .account-menu a:focus-visible, .account-menu button:focus-visible { background: var(--g1); }
.account-menu [data-account-signout] { margin-top: 6px; border-top: 1px solid var(--g2); border-radius: 0 0 9px 9px; }

/* Readable signup fields and grouped account preferences. */
.account-signup-fields { display: grid; gap: 22px; }
.account-form { gap: 22px; }
.account-form .account-consent { gap: 13px; color: var(--g5); font-size: 14px; line-height: 1.7; }
.account-consent span { min-width: 0; }
.account-kvkk { padding: 0; border: 1px solid var(--g2); border-radius: 12px; background: var(--paper); }
.account-kvkk summary { min-height: 48px; padding: 14px 16px; cursor: pointer; font-size: 14px; font-weight: 600; }
.account-kvkk > div { padding: 0 16px 16px; color: var(--g5); font-size: 14px; line-height: 1.7; }
.account-kvkk p { margin: 10px 0 0; }
.account-kvkk strong { color: var(--black); font-weight: 600; }
.account-settings-group { display: grid; gap: 18px; min-width: 0; margin: 0; padding: 18px; border: 1px solid var(--g2); border-radius: 14px; background: var(--paper); }
.account-settings-group legend { padding: 0 8px; font-size: 15px; font-weight: 700; }
.account-settings-group .account-hint { color: var(--g5); font-size: 13px; line-height: 1.7; }
.account-settings-group .account-profile-link { margin: 0; }

@media (max-width: 520px) { .nav-right > a[href="#katil"] { font-size: 12px; padding-inline: 12px; } }

.department-select { width: 100%; min-width: 0; text-overflow: ellipsis; }

.account-membership { padding: 16px; border: 1px solid var(--g2); border-radius: 14px; }
.account-membership p { margin: 8px 0 0; font-size: 13px; line-height: 1.65; color: var(--g5); }
.account-pending { outline: 2px solid #bc8b38; outline-offset: 3px; }

.registration-dialog { width: min(760px, calc(100vw - 24px)); max-height: 92dvh; padding: 0; color: var(--black); background: var(--paper); border: 1px solid var(--g2); border-radius: 24px; overflow: auto; }
.registration-dialog::backdrop { background: rgba(0,0,0,.55); backdrop-filter: blur(5px); }
.registration-inner { padding: clamp(22px,5vw,42px); }
.registration-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.registration-head p { font-size: 10px; letter-spacing: .12em; color: var(--g4); }
.registration-dialog h2 { margin: 20px 0 12px; font-size: clamp(30px,6vw,48px); }
.registration-meta, .registration-intro { color: var(--g5); line-height: 1.7; overflow-wrap: anywhere; white-space: pre-wrap; }
.registration-account { margin: 26px 0; padding: 18px; border: 1px solid var(--g2); border-radius: 14px; }
.registration-account strong { display: block; font-size: 14px; overflow-wrap: anywhere; }
.registration-account p { margin: 10px 0; color: var(--g5); font-size: 13px; line-height: 1.6; }
.registration-form, .registration-form fieldset { display: grid; gap: 24px; }
.registration-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.registration-question { display: grid; gap: 12px; font-size: 15px; line-height: 1.6; }
.registration-question small { font-size: 10px; border-radius: 20px; padding: 4px 8px; background: var(--g1); margin-left: 5px; }
.registration-question input, .registration-question textarea, .registration-question select { width: 100%; min-width: 0; padding: 13px; border: 1px solid var(--g2); border-radius: 12px; background: white; color: var(--black); font: 16px/1.5 Inter,sans-serif; }
.registration-form fieldset:disabled { opacity: .5; }
.registration-result { margin: 0; line-height: 1.6; }

/* Oturum seçimi (madde 21) — radio'lar .registration-question input kuralına çarpmasın diye ayrı sınıf. */
.registration-sessions { display: grid; gap: 8px; padding: 16px; border: 1px solid var(--g2); border-radius: 14px; }
.registration-sessions > p { margin: 0; font-size: 15px; line-height: 1.6; }
.registration-sessions small { font-size: 10px; border-radius: 20px; padding: 4px 8px; background: var(--g1); margin-left: 5px; }
.registration-session { display: flex; gap: 10px; align-items: baseline; min-height: 44px; padding: 4px 0; font-size: 15px; line-height: 1.5; }
.registration-session input { flex: none; width: 20px; height: 20px; }
.registration-session span { overflow-wrap: anywhere; }
.registration-sessions .mono { color: var(--g5); }
/* 22. madde — kayıt diyaloğunda gezi özeti ve paneldeki araç listesi. */
.registration-trip { margin: 14px 0; padding: 14px 16px; border-left: 3px solid #b26a00; background: var(--g1); border-radius: 0 14px 14px 0; }
.registration-trip p { margin: 0 0 6px; font-size: 15px; line-height: 1.6; }
.registration-trip .mono { font-size: 13px; color: var(--g4); }
/* 23. madde — kayıt ekranındaki hazırlık listesi (salt okunur; işaretleme Benim alanım'nda). */
.registration-prep { margin: 14px 0; padding: 14px 16px; border-left: 3px solid #2f6b3a; background: var(--g1); border-radius: 0 14px 14px 0; }
.registration-prep p { margin: 0 0 6px; font-size: 15px; line-height: 1.6; }
.registration-prep ul { margin: 6px 0; padding-left: 18px; display: grid; gap: 4px; }
.registration-prep .mono { font-size: 13px; color: var(--g4); }
.gezi-head p { margin: 4px 0; font-size: 15px; }
.gezi-car { margin: 12px 0; padding: 14px 16px; border: 1px solid var(--g2); border-radius: 14px; }
.gezi-car h4 { margin: 0 0 8px; }
.gezi-car small { font-weight: 400; color: var(--g4); }
.gezi-people { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.gezi-people li { font-size: 14px; }

.registration-dialog [hidden] { display: none !important; }

