:root {
  --acc-accent: #2E7D32;
  --acc-accent-2: #7CB342;
  --acc-deep: #12351a;
  --acc-grad: linear-gradient(135deg, #7CB342 0%, #2E7D32 55%, #12351a 100%);
  --acc-bg: #f6f8f7;
  --acc-card: #ffffff;
  --acc-line: #e6ebe7;
  --acc-ink: #152018;
  --acc-muted: #6b7a70;
  --acc-radius: 18px;
  --acc-shadow: 0 10px 30px rgba(20, 54, 26, 0.07);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--acc-bg);
  color: var(--acc-ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

.muted { color: var(--acc-muted); }

.acc-page {
  max-width: 1060px;
  margin: 0 auto;
  padding: 30px 20px 72px;
}

.acc-loading {
  padding: 80px 0;
  text-align: center;
  color: var(--acc-muted);
  font-size: 15px;
}

.acc-error {
  margin: 40px auto;
  max-width: 620px;
  padding: 18px 20px;
  border-radius: 14px;
  background: #fdecea;
  color: #b3261e;
  font-size: 14px;
}

.acc-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  margin-bottom: 20px;
  background: var(--acc-card);
  border: 1px solid var(--acc-line);
  border-radius: var(--acc-radius);
  box-shadow: var(--acc-shadow);
}

.acc-avatar {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--acc-grad);
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.5px;
  user-select: none;
}

.acc-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.acc-hero-text { min-width: 0; }
.acc-hero-text h1 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.acc-hero-text p {
  margin: 2px 0 0;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.acc-badge[hidden] { display: none !important; }
.acc-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #e8f5e9;
  color: var(--acc-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.acc-hero-link { margin-left: auto; flex: 0 0 auto; }

.acc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.acc-card {
  background: var(--acc-card);
  border: 1px solid var(--acc-line);
  border-radius: var(--acc-radius);
  padding: 24px;
  box-shadow: 0 1px 2px rgba(20, 54, 26, 0.03);
}

.acc-card h2 {
  margin: 0 0 4px;
  font-size: 18px;
  letter-spacing: -0.3px;
}

.acc-card > p.muted {
  margin: 0 0 16px;
  font-size: 14px;
}

.acc-card label {
  display: block;
  margin: 12px 0 5px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  color: #33443a;
}

.acc-card input,
.acc-card select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--acc-line);
  border-radius: 10px;
  background: #fbfcfb;
  color: var(--acc-ink);
  font-family: inherit;
  font-size: 14px;
}

.acc-card input:focus,
.acc-card select:focus {
  outline: none;
  border-color: var(--acc-accent);
  background: #fff;
}

.acc-row2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.acc-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.acc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.15s, background 0.15s, box-shadow 0.15s;
}
.acc-btn:active { transform: translateY(1px); }
.acc-btn:disabled { opacity: 0.55; cursor: default; }

.acc-btn.primary {
  background: var(--acc-grad);
  color: #fff;
  box-shadow: 0 8px 18px rgba(46, 125, 50, 0.28);
}
.acc-btn.primary:hover { filter: brightness(1.04); }

.acc-btn.ghost {
  background: #fff;
  color: var(--acc-accent);
  border-color: var(--acc-line);
}
.acc-btn.ghost:hover { background: #e8f5e9; }

.acc-btn.danger {
  background: #fdecea;
  color: #c62828;
}
.acc-btn.danger:hover { background: #fbdcd8; }

.acc-btn.small {
  padding: 7px 12px;
  font-size: 13px;
  border-radius: 9px;
}

.acc-msg { font-size: 13px; }
.acc-msg.ok { color: var(--acc-accent); }
.acc-msg.err { color: #c62828; }

.acc-list { margin-top: 6px; }

.acc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--acc-line);
}
.acc-item:last-child { border-bottom: 0; }

.acc-item-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.acc-item-main b {
  font-size: 14px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.acc-item-sub {
  color: var(--acc-muted);
  font-size: 12.5px;
}

.acc-item > .acc-btn { margin-left: auto; flex: 0 0 auto; }

.acc-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e8f5e9;
  color: var(--acc-accent);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  vertical-align: middle;
}

.acc-empty {
  padding: 14px 0;
  color: var(--acc-muted);
  font-size: 13.5px;
}

.acc-apps { margin-top: 18px; }

.acc-app-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.acc-app-links a {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border: 1px solid var(--acc-line);
  border-radius: 999px;
  background: #fbfcfb;
  color: var(--acc-accent);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
}
.acc-app-links a:hover { background: #e8f5e9; }

@media (max-width: 820px) {
  .acc-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .acc-page { padding: 20px 14px 56px; }
  .acc-hero { padding: 18px; gap: 14px; flex-wrap: wrap; }
  .acc-avatar { width: 60px; height: 60px; flex-basis: 60px; font-size: 22px; }
  .acc-hero-text h1 { font-size: 20px; }
  .acc-hero-link { margin-left: 0; }
  .acc-card { padding: 18px; }
  .acc-row2 { grid-template-columns: 1fr; }
  .acc-item { align-items: flex-start; }
}
