/* Blend: 1/3 GitHub (header, borders, inputs, green/red actions, 6px radius)
         1/3 Figma (multicolor accent, pill nav, gradient icons, near-black buttons)
         1/3 Facebook (#f0f2f5 canvas, white soft-shadow cards, blue brand, fill inputs on login) */
:root {
  --gh-header: #24292f;
  --gh-border: #d0d7de;
  --gh-muted: #57606a;
  --gh-green: #2da44e;
  --gh-green-h: #2c974b;
  --gh-red: #cf222e;
  --gh-red-h: #a40e26;
  --gh-link: #0969da;
  --gh-ring: rgba(9,105,218,.3);
  --fg-ink: #1e1e1e;
  --fg-purple: #a259ff;
  --fg-blue: #1abcfe;
  --fg-green: #0acf83;
  --fg-orange: #ff7262;
  --fg-red: #f24e1e;
  --fb-blue: #1877f2;
  --fb-blue-h: #166fe5;
  --fb-bg: #f0f2f5;
  --fb-text: #050505;
  --fb-sub: #65676b;
  --fb-shadow: 0 1px 2px rgba(0,0,0,.1), 0 2px 12px rgba(0,0,0,.06);
}

* {
  box-sizing: border-box;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 16px;
}

body, html {
  background-color: #f0f2f5;
  color: #050505;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  padding: 0;
  color: #050505;
}

a {
  color: #0969da;
}

/* Forms */
.form {
  display: flex;
  flex-flow: column;
  width: 100%;
}

.form .form-label {
  display: block;
  padding: 20px 0 8px 0;
  font-weight: 600;
  font-size: 14px;
  color: #050505;
}

.form .form-group {
  display: flex;
  position: relative;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.form .form-group .form-icon-left,
.form .form-group .form-icon-right {
  fill: #8c959f;
  width: 40px;
  position: absolute;
  transform: translateY(-50%);
  top: 50%;
  pointer-events: none;
}

.form .form-group .form-icon-left {
  left: 0;
}

.form .form-group .form-icon-left + .form-input {
  padding-left: 40px;
}

.form .form-group .form-icon-right {
  right: 0;
}

.form .form-group .form-icon-right + .form-input {
  padding-right: 40px;
}

.form .form-group:focus-within .form-icon-left {
  fill: #a259ff;
}

.form .form-input {
  width: 100%;
  height: 44px;
  border: 1px solid #d0d7de;
  background: #f6f8fa;
  padding: 0 15px;
  border-radius: 6px;
  outline: 0;
  color: #050505;
  transition: background .15s, box-shadow .15s;
}

.form .form-input::placeholder {
  color: #8c959f;
}

.form .form-input:focus {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(162,89,255,.25);
  border: 1px solid #a259ff;
}

.form .form-link {
  color: #1877f2;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}

.form .form-link:hover {
  text-decoration: underline;
}

.form #remember_me {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  color: #57606a;
  user-select: none;
}

.form #remember_me input {
  margin: 0 10px 0 0;
  transform: scale(1.1);
  opacity: .6;
  accent-color: #a259ff;
}

.form #remember_me input:checked {
  opacity: 1;
}

.form p.register-link {
  margin: 0;
  padding: 20px 0 0 0;
  font-size: 14px;
  color: #65676b;
  text-align: center;
}

.form div.msg {
  font-size: 14px;
  font-weight: 500;
}

.form div.msg.success {
  padding: 12px 14px;
  margin: 15px 0;
  color: #1a7f37;
  background: #dafbe1;
  border: 1px solid #4ac26b;
  border-radius: 6px;
}

.form div.msg.success .form-link {
  color: #116329;
}

.form div.msg.success .form-link:hover {
  color: #044f1e;
}

.form div.msg.error {
  padding: 12px 14px;
  margin: 15px 0;
  color: #82071e;
  background: #ffebe9;
  border: 1px solid #ff8182;
  border-radius: 6px;
}

.form div.msg.error .form-link {
  color: #82071e;
}

.form div.msg.error .form-link:hover {
  color: #4c0014;
}

.form div.msg:empty {
  display: none;
}

.form .captcha {
  display: flex;
  padding-bottom: 20px;
}

.form .captcha img {
  min-width: 150px;
  border-radius: 6px 0 0 6px;
}

.form .captcha input {
  height: 50px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.form .fb-btn, 
.form .gl-btn, 
.form .dc-btn, 
.form .ms-btn {
  display: flex;
  text-decoration: none;
  position: relative;
  border-radius: 6px;
  text-align: center;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  width: 100%;
  margin: 15px 0 0 0;
  padding: 14px;
  transition: background-color .2s;
}

.form .fb-btn svg, 
.form .gl-btn svg, 
.form .dc-btn svg, 
.form .ms-btn svg {
  position: absolute;
  left: 15px;
  fill: #fff;
}

.form .fb-btn:hover, 
.form .gl-btn:hover, 
.form .dc-btn:hover, 
.form .ms-btn:hover {
  color: #fff;
}

.form .fb-btn {
  background-color: #1877f2;
}

.form .fb-btn:hover {
  background-color: #166fe5;
}

.form .gl-btn {
  background-color: #d6523e;
}

.form .gl-btn:hover {
  background-color: #cf412c;
}

.form .dc-btn {
  background-color: #5865f2;
}

.form .dc-btn:hover {
  background-color: #4752c4;
}

.form .ms-btn {
  background-color: #24292f;
}

.form .ms-btn:hover {
  background-color: #1b1f24;
}

.form.form-small {
  max-width: 300px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  appearance: none;
  cursor: pointer;
  border: 1px solid rgba(27,31,36,.15);
  background: #1e1e1e;
  color: #fff;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  height: 38px;
  box-shadow: 0 1px 0 rgba(27,31,36,.04);
  transition: background .15s, transform .05s;
}

.btn:hover {
  background: #000;
}

.btn:active {
  transform: translateY(1px);
}

.btn.blue {
  background: #1877f2;
  border-color: transparent;
}

.btn.blue:hover {
  background: #166fe5;
}

.btn.green {
  background: #2da44e;
}

.btn.green:hover {
  background: #2c974b;
}

.btn.red {
  background: #cf222e;
}

.btn.red:hover {
  background: #a40e26;
}

.btn.alt {
  color: #24292f;
  border: 1px solid #d0d7de;
  background: #f6f8fa;
}

.btn.alt:hover {
  background: #eaeef2;
}

.btn.disabled {
  background: #8c959f;
  cursor: not-allowed;
}

.btn.disabled:hover {
  background: #8c959f;
}

.btn.small {
  padding: 8px 12px;
  font-size: 12px;
  height: auto;
}

.btn .loader, 
.btn .loader::after {
  width: 15px;
  height: 15px;
}

.btn .loader {
  margin: 0;
  border-top: 2px solid rgba(255,255,255,.4);
  border-right: 2px solid rgba(255,255,255,.4);
  border-bottom: 2px solid rgba(255,255,255,.4);
  border-left: 2px solid rgba(255,255,255,.9);
}

/* Login / Register (Facebook-style floating card) */
.login, 
.register {
  display: flex;
  flex-flow: column;
  width: 450px;
  max-width: 95%;
  background-color: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.1), 0 2px 12px rgba(0,0,0,.06);
  border-radius: 8px;
  margin: 100px auto;
  padding: 35px;
}

.login .icon, 
.register .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin: 5px auto 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #a259ff, #1abcfe);
}

.login .icon svg, 
.register .icon svg {
  fill: #fff;
}

.login h1, 
.register h1 {
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  padding: 20px 0 10px 0;
  margin: 0;
}

.login .btn[type=submit], 
.register .btn[type=submit] {
  height: 44px;
  background: #1877f2;
} 

.login .btn[type=submit]:hover, 
.register .btn[type=submit]:hover {
  background: #166fe5;
}

/* Header (GitHub dark bar, Figma pill nav) */
.header {
  background-color: #24292f;
  height: 62px;
  width: 100%;
  border-bottom: 1px solid #1b1f24;
}

.header .wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin: 0 auto;
  width: 1000px;
  height: 100%;
}

.header .wrapper h1, 
.header .wrapper a, 
.header .wrapper label {
  display: inline-flex;
  align-items: center;
}

.header .wrapper h1 {
  font-size: 20px;
  padding: 0;
  margin: 0;
  color: #fff;
  font-weight: 700;
  letter-spacing: -.3px;
}

.header .wrapper label, 
.header .wrapper input[type=checkbox] {
  display: none;
}

.header .wrapper label {
  cursor: pointer;
  position: relative;
  height: 40px;
  width: 50px;
  text-decoration: none;
  margin-right: 5px;
  border-radius: 6px;
}

.header .wrapper label::before, 
.header .wrapper label::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 20px;
  height: 2px;
  background-color: #8c959f;
}

.header .wrapper label::after {
  top: 26px;
}

.header .wrapper label:hover, 
.header .wrapper label:active, 
.header .wrapper input[type=checkbox]:checked ~ label {
  background-color: #32383f;
}

.header .wrapper label:hover::before, 
.header .wrapper label:hover::after, 
.header .wrapper label:active::before, 
.header .wrapper label:active::after, 
.header .wrapper input[type=checkbox]:checked ~ label::before, 
.header .wrapper input[type=checkbox]:checked ~ label::after {
  background-color: #fff;
}

.header .wrapper .menu {
  display: flex;
  align-items: center;
}

.header .wrapper .menu a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  border-radius: 17px;
  padding: 0 16px;
  margin: 0 3px;
  text-decoration: none;
  color: #c9d1d9;
  font-weight: 500;
  font-size: 14px;
  line-height: 16px;
  transition: background .15s;
}

.header .wrapper .menu a svg {
  fill: #c9d1d9;
  margin: 2px 8px 0 0;
}

.header .wrapper .menu a.alt {
  color: #fff;
}

.header .wrapper .menu a.alt svg {
  fill: #fff;
}

.header .wrapper .menu a:hover, 
.header .wrapper .menu a:active {
  color: #fff;
  background-color: #32383f;
}

.header .wrapper .menu a:hover svg, 
.header .wrapper .menu a:active svg {
  fill: #fff;
}

.header .wrapper .menu a.active {
  color: #fff;
  background: #a259ff;
}

.header .wrapper .menu a.active svg {
  fill: #fff;
}

.header .wrapper .menu a:last-child {
  margin-right: 0;
}

/* Content (Facebook cards) */
.content {
  width: 1000px;
  margin: 0 auto;
}

.content .page-title {
  display: flex;
  align-items: center;
  padding: 25px 0 10px 0;
}

.content .page-title .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f24e1e, #a259ff 55%, #1abcfe);
  color: #fff;
  margin-right: 20px;
  border-radius: 50%;
  height: 55px;
  width: 55px;
  min-height: 55px;
  min-width: 55px;
}

.content .page-title .icon svg {
  fill: #fff;
}

.content .page-title h2 {
  margin: 0;
  padding: 0 0 5px 0;
  font-size: 22px;
  font-weight: 700;
  color: #050505;
}

.content .page-title p {
  margin: 0;
  padding: 0;
  font-size: 14px;
  color: #65676b;
}

.content .block {
  box-shadow: 0 1px 2px rgba(0,0,0,.1), 0 2px 12px rgba(0,0,0,.06);
  margin: 25px 0;
  padding: 25px;
  border-radius: 8px;
  background-color: #fff;
  border: 1px solid #e4e6eb;
}

.content .block p {
  padding: 7px;
  margin: 0;
}

.content .profile-detail {
  display: flex;
  flex-flow: column;
  font-size: 18px;
  padding: 5px 0;
}

.content .profile-detail strong {
  display: block;
  color: #57606a;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 2px;
}

/* Spacing utilities */
.pad-1 { padding: 5px; }
.mar-1 { margin: 5px; }
.pad-bot-1 { padding-bottom: 5px; }
.pad-top-1 { padding-top: 5px; }
.pad-left-1 { padding-left: 5px; }
.pad-right-1 { padding-right: 5px; }
.pad-x-1 { padding-left: 5px; padding-right: 5px; }
.pad-y-1 { padding-top: 5px; padding-bottom: 5px; }
.mar-bot-1 { margin-bottom: 5px; }
.mar-top-1 { margin-top: 5px; }
.mar-left-1 { margin-left: 5px; }
.mar-right-1 { margin-right: 5px; }
.mar-x-1 { margin-left: 5px; margin-right: 5px; }
.mar-y-1 { margin-top: 5px; margin-bottom: 5px; }

.pad-2 { padding: 10px; }
.mar-2 { margin: 10px; }
.pad-bot-2 { padding-bottom: 10px; }
.pad-top-2 { padding-top: 10px; }
.pad-left-2 { padding-left: 10px; }
.pad-right-2 { padding-right: 10px; }
.pad-x-2 { padding-left: 10px; padding-right: 10px; }
.pad-y-2 { padding-top: 10px; padding-bottom: 10px; }
.mar-bot-2 { margin-bottom: 10px; }
.mar-top-2 { margin-top: 10px; }
.mar-left-2 { margin-left: 10px; }
.mar-right-2 { margin-right: 10px; }
.mar-x-2 { margin-left: 10px; margin-right: 10px; }
.mar-y-2 { margin-top: 10px; margin-bottom: 10px; }

.pad-3 { padding: 15px; }
.mar-3 { margin: 15px; }
.pad-bot-3 { padding-bottom: 15px; }
.pad-top-3 { padding-top: 15px; }
.pad-left-3 { padding-left: 15px; }
.pad-right-3 { padding-right: 15px; }
.pad-x-3 { padding-left: 15px; padding-right: 15px; }
.pad-y-3 { padding-top: 15px; padding-bottom: 15px; }
.mar-bot-3 { margin-bottom: 15px; }
.mar-top-3 { margin-top: 15px; }
.mar-left-3 { margin-left: 15px; }
.mar-right-3 { margin-right: 15px; }
.mar-x-3 { margin-left: 15px; margin-right: 15px; }
.mar-y-3 { margin-top: 15px; margin-bottom: 15px; }

.pad-4 { padding: 20px; }
.mar-4 { margin: 20px; }
.pad-bot-4 { padding-bottom: 20px; }
.pad-top-4 { padding-top: 20px; }
.pad-left-4 { padding-left: 20px; }
.pad-right-4 { padding-right: 20px; }
.pad-x-4 { padding-left: 20px; padding-right: 20px; }
.pad-y-4 { padding-top: 20px; padding-bottom: 20px; }
.mar-bot-4 { margin-bottom: 20px; }
.mar-top-4 { margin-top: 20px; }
.mar-left-4 { margin-left: 20px; }
.mar-right-4 { margin-right: 20px; }
.mar-x-4 { margin-left: 20px; margin-right: 20px; }
.mar-y-4 { margin-top: 20px; margin-bottom: 20px; }

.pad-5 { padding: 25px; }
.mar-5 { margin: 25px; }
.pad-bot-5 { padding-bottom: 25px; }
.pad-top-5 { padding-top: 25px; }
.pad-left-5 { padding-left: 25px; }
.pad-right-5 { padding-right: 25px; }
.pad-x-5 { padding-left: 25px; padding-right: 25px; }
.pad-y-5 { padding-top: 25px; padding-bottom: 25px; }
.mar-bot-5 { margin-bottom: 25px; }
.mar-top-5 { margin-top: 25px; }
.mar-left-5 { margin-left: 25px; }
.mar-right-5 { margin-right: 25px; }
.mar-x-5 { margin-left: 25px; margin-right: 25px; }
.mar-y-5 { margin-top: 25px; margin-bottom: 25px; }

@media screen and (max-width: 1000px) {
  .login, 
  .register { 
    margin: 20px auto; 
    padding: 25px; 
  }
  .header .wrapper { 
    width: 100%; 
  }
  .header .wrapper h1 { 
    font-size: 18px; 
    padding: 15px; 
  }
  .header .wrapper label { 
    display: inline-flex; 
  }
  .header .wrapper .menu { 
    display: none; 
    position: absolute; 
    top: 100%; 
    width: 100%; 
    flex-flow: column; 
    background-color: #24292f; 
    border-top: 1px solid #32383f; 
    align-items: flex-start; 
    padding: 10px; 
    z-index: 10; 
  }
  .header .wrapper input[type=checkbox]:checked ~ .menu { 
    display: flex; 
  }
  .header .wrapper input[type=checkbox]:checked ~ .menu a { 
    justify-content: flex-start; 
    width: 100%; 
    padding: 22px 16px; 
  }
  .content { 
    width: 100%; 
    padding: 5px 10px; 
  }
}

.collab {
  padding: 20px 0;
  color: #050505;
}

.collab a {
  color: #0969da;
  text-decoration: none;
}

.collab a:hover {
  text-decoration: underline;
}

.collab h2, 
.collab h3 {
  margin: 12px 0;
}

.c-muted {
  color: #65676b;
  font-size: 13px;
}

.c-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.c-tabs a {
  padding: 8px 16px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #d0d7de;
  color: #24292f !important;
  font-weight: 500;
  font-size: 14px;
}

.c-tabs a:hover {
  text-decoration: none;
  background: #f6f8fa;
}

.c-tabs a.on {
  background: #a259ff;
  border-color: #a259ff;
  color: #fff !important;
}

.c-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
  background: #fff;
  padding: 14px;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,.1), 0 2px 12px rgba(0,0,0,.06);
}

.collab input, 
.collab select, 
.collab textarea {
  background: #f6f8fa;
  color: #050505;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  padding: 9px;
  width: 100%;
  box-sizing: border-box;
  font-size: 14px;
}

.collab input:focus, 
.collab select:focus, 
.collab textarea:focus {
  outline: 0;
  background: #fff;
  border-color: #a259ff;
  box-shadow: 0 0 0 3px rgba(162,89,255,.25);
}

.c-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.c-card {
  background: #fff;
  border: 1px solid #e4e6eb;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,.1), 0 2px 12px rgba(0,0,0,.06);
  padding: 16px;
  margin-bottom: 14px;
}

.c-grid .c-card {
  margin: 0;
}

.c-user {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.c-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a259ff, #1abcfe);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 14px;
}

.c-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 8px 0;
}

.c-tags.inline {
  display: inline-flex;
  margin: 0;
}

.c-tags span {
  background: #eaeef2;
  color: #24292f;
  border-radius: 12px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 500;
}

.c-tags span.st-open {
  background: #dafbe1;
  color: #116329;
}

.c-tags span.st-accepted {
  background: #ddf4ff;
  color: #0550ae;
}

.c-tags span.st-completed {
  background: #fbefff;
  color: #6639ba;
}

.c-tags span.st-closed {
  background: #ffebe9;
  color: #82071e;
}

.c-btn {
  display: inline-block;
  background: #1877f2;
  color: #fff !important;
  border: 0;
  border-radius: 6px;
  padding: 9px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.c-btn:hover {
  background: #166fe5;
  text-decoration: none !important;
}

.c-btn.alt {
  background: #f6f8fa;
  color: #24292f !important;
  border: 1px solid #d0d7de;
}

.c-btn.alt:hover {
  background: #eaeef2;
}

.c-btn.danger {
  background: #cf222e;
}

.c-btn.danger:hover {
  background: #a40e26;
}

.c-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.c-row form {
  margin: 0;
}

.c-form label {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 14px;
}

.c-msg {
  padding: 10px 14px;
  border-radius: 6px;
  margin: 10px 0;
  font-size: 14px;
}

.c-msg.ok {
  background: #dafbe1;
  border: 1px solid #4ac26b;
  color: #116329;
}

.c-msg.err {
  background: #ffebe9;
  border: 1px solid #ff8182;
  color: #82071e;
}

.c-app {
  border-top: 1px solid #e4e6eb;
  padding: 12px 0;
}

.collab audio {
  width: 100%;
  margin-top: 8px;
}

.c-msgs {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 14px;
}

.c-conv {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 8px;
  flex-wrap: wrap;
  color: #050505 !important;
}

.c-conv:hover {
  background: #f0f2f5;
  text-decoration: none !important;
}

.c-conv.on {
  background: #e7f3ff;
}

.c-badge {
  background: #f24e1e;
  color: #fff;
  border-radius: 10px;
  padding: 1px 7px;
  font-size: 12px;
}

.c-bubbles {
  max-height: 420px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.c-bubble {
  padding: 10px 14px;
  border-radius: 18px;
  max-width: 80%;
  font-size: 14px;
}

.c-bubble small {
  display: block;
  opacity: .7;
  font-size: 11px;
  margin-top: 2px;
}

.c-bubble.me {
  background: #1877f2;
  color: #fff;
  align-self: flex-end;
}

.c-bubble.them {
  background: #e4e6eb;
  align-self: flex-start;
}

@media(max-width: 700px) {
  .c-msgs {
    grid-template-columns: 1fr;
  }
}