/* İstek Duvarı: the İstekler page. Chrome uses theme tokens; the post-its are paper, so each colour is a fixed
   light tint with dark ink that reads the same in every app theme. */

#requestsView { overflow: hidden; }

.requestWall {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  padding: 24px clamp(16px, 3vw, 40px) 32px;
  overflow-y: auto;
}

.requestWallHeader { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.requestWallTitle { margin: 0; color: var(--text); font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.requestWallTitle:focus { outline: none; }
.requestWallLead { margin: 4px 0 0; max-width: 60ch; color: var(--muted); font-size: 13px; line-height: 1.45; }

.requestWallSort { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.requestWallSortBtn {
  padding: 6px 12px; border: 0; border-radius: 7px; background: transparent; color: var(--text-secondary);
  font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
}
.requestWallSortBtn:hover { color: var(--text); background: var(--surface-hover); }
.requestWallSortBtn[aria-pressed="true"] { color: var(--on-accent-fill); background: var(--accent-fill); }
.requestWallSortBtn:focus-visible, .requestWallColor:focus-visible, .requestWallSubmit:focus-visible,
.requestNote button:focus-visible, .requestNote select:focus-visible, .requestNote input:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

/* Paper tints, also used by the composer preview. */
.requestWallComposer, .requestNote { --paper: #fff3a8; --paper-edge: #e9d676; --ink: #2d2a1e; --ink-soft: #5f5a44; }
.requestWall [data-color="yellow"] { --paper: #fff3a8; --paper-edge: #e9d676; --ink: #2d2a1e; --ink-soft: #5f5a44; }
.requestWall [data-color="pink"] { --paper: #ffd1e3; --paper-edge: #f0a9c6; --ink: #3a1e29; --ink-soft: #6e4656; }
.requestWall [data-color="blue"] { --paper: #cfe6ff; --paper-edge: #9fc6ef; --ink: #182a3d; --ink-soft: #435a73; }
.requestWall [data-color="green"] { --paper: #d3f5cf; --paper-edge: #a3dc9b; --ink: #1d3319; --ink-soft: #476243; }
.requestWall [data-color="purple"] { --paper: #e5d8ff; --paper-edge: #c2aef0; --ink: #2a2140; --ink-soft: #594d73; }

.requestWallComposer {
  display: flex; flex-direction: column; gap: 10px; max-width: 640px; padding: 14px;
  border: 1px solid var(--paper-edge); border-radius: 4px 4px 14px 4px; background: var(--paper); color: var(--ink);
  box-shadow: 0 6px 18px rgb(var(--shadow-rgb) / 0.22);
}
.requestWallInput {
  width: 100%; min-height: 72px; padding: 0; border: 0; resize: vertical; background: transparent; color: var(--ink);
  font: inherit; font-size: 15px; line-height: 1.45;
}
.requestWallInput::placeholder { color: var(--ink-soft); opacity: 0.8; }
.requestWallInput:focus { outline: none; }
.requestWallComposerRow { display: flex; align-items: center; gap: 10px; }
.requestWallColors { display: inline-flex; gap: 6px; }
.requestWallColor {
  width: 22px; height: 22px; padding: 0; border: 2px solid rgb(0 0 0 / 0.18); border-radius: 50%;
  background: var(--paper); cursor: pointer;
}
.requestWallColor[aria-checked="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.requestWallCounter { margin-left: auto; color: var(--ink-soft); font-size: 11px; font-variant-numeric: tabular-nums; }
.requestWallSubmit {
  padding: 8px 14px; border: 0; border-radius: 8px; background: var(--ink); color: var(--paper); white-space: nowrap;
  font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.requestWallSubmit:disabled { opacity: 0.45; cursor: default; }
.requestWallNotice { margin: 0; color: #8a1c1c; font-size: 12px; font-weight: 600; }

.requestWallState { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.requestWallState[hidden] { display: none; }
.requestWallStateText { margin: 0; }
.requestWallRetry {
  padding: 6px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text);
  font: inherit; font-size: 12px; cursor: pointer;
}

.requestWallGrid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); align-items: start; gap: 22px 18px;
  margin: 0; padding: 6px 2px 0; list-style: none;
}

.requestNote {
  position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 150px; padding: 18px 14px 12px;
  border-radius: 2px 2px 16px 2px; background: var(--paper); color: var(--ink);
  box-shadow: 0 1px 0 var(--paper-edge), 0 8px 18px rgb(var(--shadow-rgb) / 0.28);
  rotate: var(--note-tilt, 0deg); transition: rotate 160ms ease-out, translate 160ms ease-out;
}
.requestNote::before {
  content: ''; position: absolute; top: -9px; left: 50%; width: 64px; height: 18px; translate: -50% 0; rotate: -2deg;
  background: rgb(255 255 255 / 0.42); box-shadow: 0 1px 2px rgb(0 0 0 / 0.12);
}
.requestNote:hover, .requestNote:focus-within { rotate: 0deg; translate: 0 -2px; }
.requestNote[data-status="done"], .requestNote[data-status="rejected"] { opacity: 0.78; }
.requestNoteRemove {
  position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 24px; height: 24px; padding: 0;
  border: 0; border-radius: 6px; background: transparent; color: var(--ink-soft); font: inherit; font-size: 18px; line-height: 1;
  cursor: pointer; opacity: 0.55; transition: opacity 120ms ease-out, background 120ms ease-out;
}
.requestNoteRemove[hidden] { display: none; }
.requestNote:hover .requestNoteRemove, .requestNoteRemove:focus-visible { opacity: 1; }
.requestNoteRemove:hover { background: rgb(0 0 0 / 0.1); color: #9b2c2c; opacity: 1; }
.requestNoteRemove:disabled { cursor: default; opacity: 0.3; }
.requestNote:has(.requestNoteRemove:not([hidden])) .requestNoteText { padding-right: 18px; }
.requestNoteConfirm {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px; border-radius: 8px;
  background: rgb(155 44 44 / 0.12); color: var(--ink); font-size: 12px; font-weight: 600;
}
.requestNoteConfirm[hidden] { display: none; }
.requestNoteConfirmText { flex: 1 1 100%; }
.requestNoteConfirmYes, .requestNoteConfirmNo {
  padding: 5px 10px; border: 1px solid rgb(0 0 0 / 0.14); border-radius: 7px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer;
}
.requestNoteConfirmYes { border-color: #9b2c2c; background: #9b2c2c; color: #fff; }
.requestNoteConfirmNo { background: rgb(255 255 255 / 0.5); color: var(--ink); }
.requestNote.confirmingRemove { rotate: 0deg; }
.requestNoteText { margin: 0; font-size: 15px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.requestNoteMeta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: auto; color: var(--ink-soft); font-size: 11px; }
.requestNoteStatus { padding: 2px 7px; border-radius: 999px; background: rgb(0 0 0 / 0.1); color: var(--ink); font-weight: 700; }
.requestNoteStatus[data-status="done"] { background: #2f7d32; color: #fff; }
.requestNoteStatus[data-status="rejected"] { background: #9b2c2c; color: #fff; }
.requestNoteStatus[data-status="inProgress"] { background: #1f5fae; color: #fff; }
.requestNoteAuthor { font-weight: 600; }
.requestNoteAuthor.isAdminView { padding: 1px 6px; border: 1px dashed var(--ink-soft); border-radius: 6px; }
.requestNoteActions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.requestNoteSupport, .requestNoteCommentsToggle, .requestNoteCommentSend {
  padding: 5px 9px; border: 1px solid rgb(0 0 0 / 0.14); border-radius: 7px; background: rgb(255 255 255 / 0.4);
  color: var(--ink); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer;
}
.requestNoteSupport { display: inline-flex; align-items: stretch; padding: 0; overflow: hidden; }
.requestNoteSupportLabel, .requestNoteSupportCount { display: inline-flex; align-items: center; padding: 5px 8px; }
.requestNoteSupportCount { min-width: 1.6em; justify-content: center; border-left: 1px solid rgb(0 0 0 / 0.16); font-variant-numeric: tabular-nums; }
.requestNoteSupport[aria-pressed="true"] .requestNoteSupportCount { border-left-color: rgb(255 255 255 / 0.3); }
.requestNoteSupport[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.requestNoteSupport:disabled { cursor: default; opacity: 0.7; }
.requestNoteSupport:not(:disabled):hover, .requestNoteCommentsToggle:hover { background: rgb(255 255 255 / 0.65); }
.requestNoteSupport[aria-pressed="true"]:not(:disabled):hover { background: var(--ink); }
.requestNoteStatusSelect {
  margin-left: auto; padding: 4px 6px; border: 1px solid rgb(0 0 0 / 0.2); border-radius: 7px; background: rgb(255 255 255 / 0.55);
  color: var(--ink); font: inherit; font-size: 12px;
}
.requestNoteStatusSelect[hidden], .requestNoteComments[hidden], .requestNoteAuthor[hidden], .requestNoteStatus[hidden] { display: none; }
.requestNoteComments { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; border-top: 1px dashed rgb(0 0 0 / 0.2); }
.requestNoteCommentList { display: flex; flex-direction: column; gap: 6px; max-height: 260px; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.requestNoteComment { padding: 6px 8px; border-radius: 6px; background: rgb(255 255 255 / 0.45); }
.requestNoteComment.mine { background: rgb(255 255 255 / 0.7); }
.requestNoteCommentText { margin: 0; font-size: 13px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.requestNoteCommentMeta { color: var(--ink-soft); font-size: 10px; }
.requestNoteCommentEmpty { color: var(--ink-soft); font-size: 12px; }
.requestNoteCommentForm { display: flex; gap: 6px; }
.requestNoteCommentInput {
  flex: 1; min-width: 0; padding: 6px 8px; border: 1px solid rgb(0 0 0 / 0.18); border-radius: 7px; background: rgb(255 255 255 / 0.7);
  color: var(--ink); font: inherit; font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
  .requestNote { rotate: 0deg; transition: none; }
  .requestNote:hover, .requestNote:focus-within { translate: none; }
}
