.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: rgba(15, 34, 54, 0.64);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.stack-12 {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.row-gap-6 {
  display: flex;
  gap: 6px;
  align-items: center;
}

.full {
  width: 100%;
  justify-content: center;
}

.muted {
  color: var(--text-muted);
  font-size: 12px;
}

.btn {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-main);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

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

.btn-primary {
  background: linear-gradient(140deg, var(--accent), #176fce);
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 120, 220, 0.3);
}

.btn-ghost {
  border-color: var(--border);
  background: rgba(11, 25, 38, 0.65);
  color: var(--text-muted);
}

.btn-ghost:hover {
  border-color: var(--border-strong);
  color: var(--text-main);
}

.btn-green {
  background: linear-gradient(150deg, var(--accent-2), #149c70);
  color: #fff;
}

.btn-danger {
  border-color: rgba(255, 111, 111, 0.34);
  color: var(--danger);
  background: rgba(120, 20, 20, 0.22);
}

.btn-sm {
  padding: 6px 11px;
  font-size: 12px;
}

.btn-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  justify-content: center;
  padding: 0;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.input-row {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(11, 25, 38, 0.6);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.input-row input,
.doc-editor-head input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-main);
  font-size: 14px;
}

.input-row i {
  color: var(--text-soft);
}

.input-row:focus-within,
.doc-editor-head input:focus,
#docEditor:focus,
#documentAiPrompt:focus,
#structPrompt:focus,
#projectDocAiPrompt:focus,
#goodnotesContextInput:focus,
#goodnotesPromptInput:focus,
#goodnotesAiResult:focus,
#canvasTextInput:focus,
#canvasFontSizeInput:focus,
#canvasColorInput:focus,
#richBlockSelect:focus,
#richPageSizeSelect:focus,
#richFontFamilySelect:focus,
#richFontSizeSelect:focus,
#richLineHeightSelect:focus,
#richColorInput:focus,
#richHighlightInput:focus,
#presentationNotes:focus,
.ai-input-wrap textarea:focus {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 3px rgba(43, 182, 255, 0.12);
}

.demo-note {
  font-size: 12px;
  color: var(--text-soft);
  text-align: center;
}

.inline-error {
  border: 1px solid rgba(255, 111, 111, 0.34);
  color: #ffb0b0;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.inline-error.show {
  display: flex;
}

.dash-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 18% 14%, rgba(73, 150, 214, 0.26), transparent 50%),
    rgba(12, 30, 48, 0.84);
  color: var(--text-main);
  padding: 20px;
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 6px;
  min-height: 122px;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.dash-card i {
  font-size: 20px;
  color: var(--accent);
}

.dash-card span {
  font-weight: 700;
}

.dash-card small {
  color: var(--text-muted);
}

.dash-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background:
    radial-gradient(circle at 18% 14%, rgba(73, 150, 214, 0.32), transparent 52%),
    rgba(17, 41, 63, 0.92);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.dash-card.locked {
  opacity: 0.66;
  filter: grayscale(0.2);
  border-color: rgba(201, 161, 78, 0.45);
}

.dash-card.locked:hover {
  transform: none;
  background: rgba(15, 34, 54, 0.65);
}

.dash-card .lock-prefix {
  margin-right: 6px;
  color: #ffd88f;
}

.project-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 10% -10%, rgba(80, 173, 244, 0.24), transparent 46%),
    linear-gradient(145deg, rgba(16, 41, 63, 0.92), rgba(10, 24, 37, 0.84));
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
  min-height: 176px;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(177, 224, 255, 0.72), rgba(177, 224, 255, 0));
  pointer-events: none;
}

.project-card:hover {
  border-color: rgba(139, 214, 255, 0.6);
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(4, 14, 24, 0.28);
}

.project-card.current {
  border-color: rgba(74, 196, 255, 0.9);
  box-shadow:
    0 0 0 1px rgba(74, 196, 255, 0.35),
    0 20px 36px rgba(3, 12, 20, 0.32);
}

.project-card:disabled,
.project-card.locked {
  opacity: 0.65;
  filter: grayscale(0.18);
  cursor: not-allowed;
}

.project-card:disabled:hover,
.project-card.locked:hover {
  border-color: var(--border);
  transform: none;
  box-shadow: none;
}

.project-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.project-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.project-title-wrap {
  min-width: 0;
}

.project-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.project-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: linear-gradient(145deg, rgba(39, 87, 128, 0.92), rgba(17, 42, 65, 0.86));
  border: 1px solid rgba(118, 186, 236, 0.36);
}

.project-title {
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-open-btn {
  color: var(--text-soft);
  font-size: 12px;
  white-space: nowrap;
  border: 1px solid rgba(111, 191, 255, 0.28);
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(16, 37, 58, 0.7);
}

.project-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-card-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.project-stat {
  border: 1px solid rgba(107, 171, 222, 0.24);
  border-radius: 10px;
  background: rgba(11, 28, 44, 0.7);
  padding: 7px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.project-stat span {
  color: var(--text-soft);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-stat strong {
  font-size: 13px;
  color: var(--text-main);
}

.project-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: auto;
}

.project-type-badge {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-type-badge.code {
  color: #9fd8ff;
  border-color: rgba(95, 177, 255, 0.45);
}

.project-type-badge.content {
  color: #95f2d0;
  border-color: rgba(90, 208, 166, 0.45);
}

.project-type-badge.whiteboard {
  color: #ffd699;
  border-color: rgba(255, 180, 90, 0.45);
}

.dashboard-stat-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(35, 76, 114, 0.26), rgba(11, 24, 37, 0.64)),
    rgba(12, 28, 43, 0.72);
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dashboard-stat-card span {
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dashboard-stat-card strong {
  font-size: 22px;
  line-height: 1.15;
}

.dashboard-stat-card strong.small {
  font-size: 14px;
}

.dashboard-website-widget {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background:
    linear-gradient(145deg, rgba(57, 121, 177, 0.2), rgba(13, 30, 46, 0.62)),
    rgba(11, 25, 38, 0.7);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dashboard-website-widget button {
  text-align: left;
}

.dashboard-website-title {
  font-weight: 700;
  font-size: 13px;
}

.dashboard-website-url {
  color: var(--text-muted);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-welcome {
  margin-bottom: 24px;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(73, 150, 214, 0.12), rgba(11, 24, 37, 0.64));
  backdrop-filter: blur(18px);
}

.dashboard-welcome h1 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
}

.dashboard-welcome #welcomeUsername {
  color: var(--accent);
}

.dashboard-welcome p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.dashboard-recent-changes {
  margin-bottom: 24px;
  padding: 20px;
}

.dashboard-section-head {
  margin-bottom: 16px;
}

.dashboard-section-head h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
}

.dashboard-section-head p {
  margin: 0;
}

.recent-changes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-left: 2px solid var(--accent);
  background: rgba(21, 46, 70, 0.4);
  border-radius: 8px;
  transition: background 140ms ease;
}

.activity-item:hover {
  background: rgba(21, 46, 70, 0.6);
}

.activity-icon {
  font-size: 14px;
  color: var(--accent);
  min-width: 20px;
  text-align: center;
}

.activity-content {
  flex: 1;
  min-width: 0;
}

.activity-name {
  font-weight: 600;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-main);
}

.activity-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.subproject-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(11, 25, 38, 0.6);
  padding: 7px 9px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.subproject-link {
  border: none;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.subproject-link:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.subproject-link strong {
  font-size: 12px;
}

.subproject-link span {
  font-size: 10px;
  color: var(--text-muted);
}

.subproject-empty {
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  color: var(--text-muted);
  font-size: 11px;
}

.whiteboard-node {
  position: absolute;
  min-width: 160px;
  max-width: 280px;
  border: 1px solid rgba(111, 191, 255, 0.4);
  border-radius: 12px;
  background: rgba(12, 31, 49, 0.94);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  cursor: move;
  user-select: none;
}

.whiteboard-node.selected {
  border-color: #2bb6ff;
  box-shadow: 0 0 0 2px rgba(43, 182, 255, 0.24), 0 10px 24px rgba(0, 0, 0, 0.35);
}

.whiteboard-node-head {
  padding: 8px 10px 5px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ed2ff;
}

.whiteboard-node-body {
  padding: 0 10px 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-main);
  min-height: 52px;
  white-space: pre-wrap;
  user-select: text;
  cursor: text;
  outline: none;
}

.whiteboard-node-body:empty::before {
  content: "Notizen...";
  color: rgba(170, 201, 225, 0.7);
}

.whiteboard-link {
  stroke: rgba(111, 191, 255, 0.75);
  stroke-width: 2.2;
  fill: none;
}

.tree-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tree-item,
.tree-folder-row {
  width: 100%;
  border: none;
  background: transparent;
  color: inherit;
  padding: 6px 8px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-align: left;
}

.tree-folder-row {
  flex: 1;
}

.tree-row .tree-item {
  flex: 1;
  width: auto;
}

.tree-node-delete {
  border: none;
  background: transparent;
  color: var(--text-muted);
  width: 24px;
  height: 24px;
  border-radius: 7px;
  cursor: pointer;
}

.tree-node-delete:hover {
  background: rgba(201, 78, 78, 0.18);
  color: #ff9b9b;
}

.tree-item:hover,
.tree-folder-row:hover {
  background: rgba(26, 57, 86, 0.58);
}

.tree-item.dragging,
.tree-folder-row.dragging {
  opacity: 0.58;
}

.tree-item.active {
  background: rgba(43, 182, 255, 0.17);
  border: 1px solid rgba(43, 182, 255, 0.28);
}

.tree-folder-row.active {
  background: rgba(43, 182, 255, 0.14);
  border: 1px solid rgba(43, 182, 255, 0.24);
}

.tree-folder-row.drop-target {
  border: 1px solid rgba(74, 196, 255, 0.82);
  background: rgba(35, 109, 170, 0.36);
}

.tree-search-result {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(11, 25, 38, 0.62);
  color: var(--text-main);
  padding: 7px 8px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tree-search-result:hover {
  border-color: var(--border-strong);
  background: rgba(21, 46, 70, 0.64);
}

.tree-search-result strong {
  font-size: 12px;
  line-height: 1.3;
}

.tree-search-result small {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
}

.tree-node {
  margin-bottom: 2px;
}

.tree-children {
  margin-left: 11px;
  border-left: 1px solid rgba(121, 176, 221, 0.2);
  padding-left: 8px;
}

.editor-tab {
  border: 1px solid transparent;
  border-bottom: none;
  padding: 7px 10px;
  border-radius: 10px 10px 0 0;
  font-family: var(--font-code);
  font-size: 12px;
  color: var(--text-soft);
  display: inline-flex;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  background: transparent;
}

.editor-tab.active {
  color: var(--accent);
  background: rgba(21, 46, 70, 0.85);
  border-color: var(--border);
}

.tab-close {
  border: none;
  background: transparent;
  color: inherit;
  opacity: 0.6;
  cursor: pointer;
  padding: 0;
}

.tab-close:hover {
  opacity: 1;
  color: var(--danger);
}

.preview-tab {
  border: 1px solid var(--border);
  background: rgba(17, 38, 58, 0.78);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 4px 9px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
}

.preview-tab.active {
  border-color: rgba(43, 182, 255, 0.6);
  color: #bde7ff;
  background: rgba(22, 72, 111, 0.75);
}

.ai-tab {
  border: 1px solid transparent;
  background: rgba(8, 21, 33, 0.75);
  color: var(--text-soft);
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 10px;
  min-width: 82px;
  white-space: nowrap;
  cursor: pointer;
}

.ai-tab.active {
  color: var(--accent);
  border-color: rgba(43, 182, 255, 0.55);
  background: rgba(20, 68, 104, 0.68);
}

.ai-msg {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ai-role {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.ai-bubble {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 9px 11px;
  font-size: 13px;
  line-height: 1.55;
  background: rgba(7, 19, 31, 0.66);
}

.ai-msg.user {
  align-items: flex-end;
}

.ai-msg.user .ai-role {
  color: #84d5ff;
}

.ai-msg.user .ai-bubble {
  background: rgba(35, 109, 170, 0.34);
}

.ai-msg.ai .ai-role {
  color: var(--accent-2);
}

.ai-bubble code {
  font-family: var(--font-code);
  background: rgba(43, 182, 255, 0.2);
  border-radius: 6px;
  padding: 1px 4px;
}

.ai-bubble pre {
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(2, 8, 14, 0.82);
  padding: 8px 10px;
  overflow-x: auto;
  font-family: var(--font-code);
  font-size: 12px;
}

.quick-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  border: 1px solid var(--border);
  background: rgba(19, 43, 66, 0.72);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 4px 9px;
  cursor: pointer;
  font-size: 11px;
}

.chip:hover {
  border-color: var(--border-strong);
  color: var(--text-main);
}

.module-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: left;
  background: rgba(11, 25, 38, 0.62);
  color: var(--text-main);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.module-card:hover {
  border-color: var(--border-strong);
}

.module-card span {
  color: var(--text-muted);
  font-size: 12px;
}

.todo-input-row {
  display: flex;
  gap: 8px;
}

.utility-form-card textarea,
.utility-form-card input,
.utility-form-card select,
.utility-list-card input,
.utility-list-card select {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(7, 19, 31, 0.65);
  color: var(--text-main);
  padding: 9px 10px;
  outline: none;
}

.todo-input-row input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(7, 19, 31, 0.65);
  padding: 9px 10px;
  outline: none;
}

.todo-input-row input:focus,
#docSearchInput:focus,
#docTypeFilter:focus,
#noteTitleInput:focus,
#noteContentInput:focus,
#mailToInput:focus,
#mailSubjectInput:focus,
#mailBodyInput:focus,
#bookmarkAiInput:focus,
#focusMinutesInput:focus,
#projectWebCompanionSelect:focus,
#projectSearchInput:focus,
#treeSearchInput:focus,
#projectTypeFilter:focus,
#projectSortSelect:focus {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 3px rgba(43, 182, 255, 0.12);
}

#projectWebCompanionSelect {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(7, 19, 31, 0.65);
  padding: 8px 10px;
  outline: none;
}

.project-todo-list {
  min-height: 100px;
  max-height: 220px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.project-todo-item {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 8px;
  background: rgba(11, 25, 38, 0.58);
}

.project-todo-item label {
  flex: 1;
  display: flex;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  font-size: 12px;
}

.project-todo-item.done label span {
  text-decoration: line-through;
  opacity: 0.65;
}

.project-todo-item small.muted {
  font-size: 11px;
  margin-right: 6px;
}

.todo-delete-btn {
  border: none;
  background: transparent;
  color: var(--danger);
  cursor: pointer;
  opacity: 0.75;
}

.todo-delete-btn:hover {
  opacity: 1;
}

.calendar-list {
  min-height: 120px;
  max-height: 420px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calendar-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(11, 25, 38, 0.58);
  padding: 8px;
}

.calendar-item-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.calendar-item-main strong {
  font-size: 13px;
}

.calendar-item-main span {
  color: var(--text-muted);
  font-size: 12px;
}

.calendar-item-main p {
  color: var(--text-soft);
  font-size: 12px;
  margin: 0;
}

.notes-list,
.mail-list,
.bookmark-list,
.focus-session-list {
  min-height: 140px;
  max-height: 460px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.focus-timer-display {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(5, 18, 29, 0.74);
  padding: 16px;
  text-align: center;
  font-family: var(--font-code);
  font-size: 44px;
  letter-spacing: 0.06em;
  color: #9fd8ff;
}

.admin-users-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
}

.admin-user-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(11, 25, 38, 0.58);
  padding: 8px;
  display: grid;
  gap: 6px;
}

.admin-user-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-user-head strong {
  font-size: 13px;
}

.admin-user-meta {
  color: var(--text-muted);
  font-size: 11px;
}

.admin-user-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-permissions-card {
  grid-column: 1 / -1;
}

.admin-permissions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}

.admin-permission-group {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(10, 23, 36, 0.62);
  padding: 8px;
  display: grid;
  gap: 6px;
}

.admin-permission-group h4 {
  font-size: 12px;
  margin: 0;
  color: var(--text-soft);
}

.admin-permission-item {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}

.control-locked {
  opacity: 0.58;
  pointer-events: none;
}

.control-lock-prefix {
  color: #ffd88f;
}

.doc-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 9px 10px;
  background: rgba(11, 25, 38, 0.62);
  cursor: pointer;
  transition: border-color 140ms ease, transform 140ms ease;
}

.document-widget {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(11, 25, 38, 0.66);
  overflow: hidden;
  text-align: left;
  color: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  padding: 0;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.document-widget:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(5, 18, 28, 0.34);
}

.document-widget.active {
  border-color: rgba(43, 182, 255, 0.65);
  box-shadow: 0 0 0 1px rgba(43, 182, 255, 0.38), 0 14px 30px rgba(5, 18, 28, 0.34);
}

.document-widget-preview {
  height: 128px;
  border-bottom: 1px solid var(--border);
  background: rgba(6, 17, 27, 0.7);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
  padding: 10px;
}

.document-widget-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.document-widget-preview .widget-file-icon {
  font-size: 34px;
  color: #9bcfff;
}

.document-widget-preview .widget-file-snippet {
  width: 100%;
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-soft);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.document-widget.folder .document-widget-preview {
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 203, 120, 0.28), transparent 52%),
    rgba(18, 30, 45, 0.86);
}

.document-widget-body {
  padding: 9px 10px;
  display: grid;
  gap: 4px;
}

.document-widget-name {
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-widget-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.document-widget-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.document-widget-kind {
  border: 1px solid rgba(118, 191, 246, 0.38);
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #bfe6ff;
  background: rgba(19, 61, 92, 0.52);
}

.document-widget.folder .document-widget-kind {
  border-color: rgba(255, 196, 120, 0.42);
  color: #ffe2b6;
  background: rgba(110, 76, 28, 0.44);
}

.document-widget-updated {
  font-size: 10px;
  color: var(--text-soft);
}

.document-widget-actions {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  gap: 4px;
}

.document-widget-delete {
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(127, 33, 33, 0.72);
  color: #ffb4b4;
  cursor: pointer;
}

.document-widget-delete:hover {
  background: rgba(157, 43, 43, 0.9);
}

.doc-item:hover {
  border-color: var(--border-strong);
  transform: translateX(2px);
}

.doc-item.active {
  border-color: rgba(43, 182, 255, 0.7);
  background: rgba(20, 60, 92, 0.65);
}

.doc-item-title {
  font-weight: 700;
  font-size: 13px;
}

.doc-item-title i {
  margin-right: 6px;
}

.doc-item-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
}

.empty-state {
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.chat-card .ai-messages {
  min-height: 280px;
}

.api-chat-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-color: rgba(104, 188, 247, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(180, 226, 255, 0.07),
    0 24px 60px rgba(1, 11, 20, 0.42);
  background:
    linear-gradient(145deg, rgba(9, 24, 37, 0.95), rgba(7, 18, 29, 0.94)),
    rgba(10, 25, 39, 0.92);
}

.api-chat-card::before {
  content: "";
  position: absolute;
  inset: -30% -18%;
  background:
    radial-gradient(circle at 18% 24%, rgba(43, 182, 255, 0.3), transparent 44%),
    radial-gradient(circle at 84% 68%, rgba(25, 221, 156, 0.24), transparent 42%),
    radial-gradient(circle at 54% 90%, rgba(255, 142, 83, 0.15), transparent 40%);
  filter: blur(18px);
  opacity: 0.85;
  animation: api-chat-orb-float 18s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

.api-chat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(111, 191, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 191, 255, 0.12) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 50% 38%, rgba(0, 0, 0, 0.9), transparent 78%);
  opacity: 0.22;
  animation: api-chat-grid-drift 24s linear infinite;
  pointer-events: none;
  z-index: 1;
}

.api-chat-card > * {
  position: relative;
  z-index: 2;
}

.api-chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 2px;
}

.api-chat-head p {
  margin-top: 4px;
}

.api-chat-status {
  border: 1px solid rgba(43, 182, 255, 0.4);
  border-radius: 999px;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #bfe8ff;
  background: rgba(19, 65, 99, 0.58);
  white-space: nowrap;
}

.api-chat-status i {
  color: #8de6ff;
  animation: api-chat-pulse 2.4s ease-in-out infinite;
}

.api-chat-messages {
  border: 1px solid rgba(109, 176, 226, 0.25);
  border-radius: var(--radius-md);
  padding: 12px;
  backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(169, 219, 255, 0.07);
  background:
    linear-gradient(180deg, rgba(8, 21, 33, 0.88), rgba(8, 21, 33, 0.68)),
    rgba(5, 16, 27, 0.85);
}

.api-chat-messages .ai-msg {
  gap: 6px;
}

.api-chat-messages .ai-bubble {
  max-width: min(88%, 820px);
  border-radius: 14px;
  padding: 11px 13px;
}

.api-chat-messages .ai-msg.ai .ai-bubble {
  border-color: rgba(67, 171, 255, 0.4);
  background: rgba(16, 46, 71, 0.66);
  box-shadow: inset 0 1px 0 rgba(132, 209, 255, 0.08);
}

.api-chat-messages .ai-msg.user .ai-bubble {
  border-color: rgba(25, 221, 156, 0.35);
  background: rgba(18, 82, 71, 0.58);
  box-shadow: inset 0 1px 0 rgba(143, 248, 213, 0.08);
}

.api-chat-messages .ai-role {
  font-size: 10px;
}

.api-chat-quick {
  padding-top: 2px;
}

.api-chat-quick .chip {
  padding: 6px 10px;
  font-size: 12px;
}

.api-chat-composer textarea {
  min-height: 54px;
  max-height: 160px;
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(8, 21, 33, 0.82);
}

.api-chat-composer #bookmarkAiSendBtn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  align-self: flex-end;
}

.api-chat-clear {
  align-self: flex-end;
}

@keyframes api-chat-orb-float {
  0% {
    transform: translate3d(-2%, 0%, 0) scale(1);
  }
  50% {
    transform: translate3d(2%, -3%, 0) scale(1.05);
  }
  100% {
    transform: translate3d(-1%, 2%, 0) scale(1.02);
  }
}

@keyframes api-chat-grid-drift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(0, 34px, 0);
  }
}

@keyframes api-chat-pulse {
  0%,
  100% {
    opacity: 0.65;
    transform: scale(0.94);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .api-chat-card::before,
  .api-chat-card::after,
  .api-chat-status i {
    animation: none;
  }
}

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(10, 26, 41, 0.95);
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease;
  z-index: 999;
}

.toast.show {
  opacity: 1;
}

.toast.success i {
  color: var(--accent-2);
}

.toast.error i {
  color: var(--danger);
}

.toast.info i {
  color: var(--accent);
}

#projectDetailSection.project-type-code {
  background: #1e1e1e;
}

#projectDetailSection.project-type-code .panel-tree {
  background: #252526;
  border-right-color: #343434;
}

#projectDetailSection.project-type-code .panel-title-row,
#projectDetailSection.project-type-code .editor-toolbar,
#projectDetailSection.project-type-code .editor-tabs {
  background: #2d2d2d;
  border-color: #3a3a3a;
}

#projectDetailSection.project-type-code .panel-editor {
  background: #1e1e1e;
}

#projectDetailSection.project-type-code .code-editor {
  background: #1e1e1e;
  color: #d4d4d4;
}

#projectDetailSection.project-type-code .code-line-numbers {
  background: #252526;
  border-right-color: #3a3a3a;
  color: #7f7f7f;
}

#projectDetailSection.project-type-code .panel-ai {
  background: #252526;
  border-left-color: #343434;
}

#projectDetailSection.project-type-content .panel-editor {
  background: linear-gradient(180deg, rgba(18, 56, 64, 0.9), rgba(8, 32, 46, 0.9));
}

#projectDetailSection.project-type-content .editor-toolbar,
#projectDetailSection.project-type-content .editor-tabs {
  background: rgba(22, 66, 79, 0.84);
}

#projectDetailSection.project-type-content .rich-command-btn {
  border-color: rgba(72, 116, 160, 0.28);
  background: rgba(255, 255, 255, 0.86);
  color: #16304a;
}

#projectDetailSection.project-type-content .rich-command-btn:hover {
  border-color: rgba(46, 112, 186, 0.48);
  background: #fff;
}

#projectDetailSection.project-type-content .rich-toolbar {
  border-color: rgba(84, 124, 152, 0.32);
  box-shadow: 0 12px 32px rgba(18, 40, 64, 0.24);
}

#projectDetailSection.project-type-content .rich-tool-btn.is-active {
  border-color: rgba(38, 102, 170, 0.82);
  background: linear-gradient(145deg, #2f7cc3, #235b92);
  color: #fff;
}

#projectDetailSection.project-type-content .rich-statusbar {
  border-color: rgba(75, 110, 139, 0.28);
}

#projectDetailSection.project-type-whiteboard {
  background: #121f2d;
}

#projectDetailSection.project-type-whiteboard .panel-tree {
  background: #182738;
  border-right-color: rgba(124, 179, 226, 0.22);
}

#projectDetailSection.project-type-whiteboard .panel-ai {
  background: #182738;
  border-left-color: rgba(124, 179, 226, 0.22);
}

#projectDetailSection.project-type-whiteboard .editor-toolbar,
#projectDetailSection.project-type-whiteboard .editor-tabs {
  background: #1c3043;
  border-color: rgba(124, 179, 226, 0.2);
}

/* Design Sprint: hierarchy, admin clarity, interaction polish */
.section-toolbar {
  position: relative;
  margin-bottom: 20px;
  padding-bottom: 10px;
}

.section-toolbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(43, 182, 255, 0.6), rgba(43, 182, 255, 0));
}

.toolbar-left h2 {
  font-size: clamp(22px, 2.5vw, 28px);
  letter-spacing: 0.01em;
}

.dashboard-panel,
.dashboard-websites,
.utility-form-card,
.utility-list-card,
.admin-head-card,
.admin-card {
  position: relative;
  overflow: hidden;
}

.dashboard-panel::before,
.dashboard-websites::before,
.utility-form-card::before,
.utility-list-card::before,
.admin-head-card::before,
.admin-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(178, 227, 255, 0.55), rgba(178, 227, 255, 0));
  pointer-events: none;
}

.dashboard-welcome,
.dashboard-websites,
.dashboard-panel {
  overflow: visible !important;
}

.dashboard-welcome {
  position: relative;
  overflow: hidden;
  border-color: rgba(124, 197, 255, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(184, 229, 255, 0.18),
    0 18px 42px rgba(4, 14, 24, 0.34);
}

.dashboard-welcome::before {
  content: "";
  position: absolute;
  inset: -22% 28% auto -18%;
  height: 220px;
  background: radial-gradient(circle, rgba(43, 182, 255, 0.28), transparent 68%);
  pointer-events: none;
  animation: welcomeGlowDrift 14s ease-in-out infinite alternate;
}

.dashboard-welcome::after {
  content: "";
  position: absolute;
  inset: auto -18% -42% 52%;
  height: 220px;
  background: radial-gradient(circle, rgba(25, 221, 156, 0.18), transparent 70%);
  pointer-events: none;
}

.dashboard-welcome h1,
.dashboard-welcome p {
  position: relative;
  z-index: 1;
}

.dashboard-stat-card {
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.dashboard-stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(133, 206, 255, 0.45);
  box-shadow: 0 16px 28px rgba(3, 12, 20, 0.26);
}

.dashboard-stat-card:nth-child(2) {
  border-color: rgba(91, 215, 174, 0.32);
}

.dashboard-stat-card:nth-child(3) {
  border-color: rgba(255, 165, 103, 0.32);
}

.dash-card i {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(26, 77, 116, 0.72), rgba(13, 36, 56, 0.64));
  border: 1px solid rgba(120, 188, 236, 0.3);
}

.dashboard-website-widget {
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.dashboard-website-widget:hover {
  transform: translateY(-2px);
  border-color: rgba(138, 209, 255, 0.44);
  box-shadow: 0 16px 28px rgba(4, 14, 24, 0.26);
}

.btn,
.chip,
.ai-tab,
.preview-tab {
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background-color 140ms ease,
    color 140ms ease,
    box-shadow 140ms ease;
}

.btn:focus-visible,
.chip:focus-visible,
.ai-tab:focus-visible,
.preview-tab:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  border-color: rgba(132, 204, 255, 0.66);
  box-shadow:
    0 0 0 1px rgba(132, 204, 255, 0.62),
    0 0 0 4px rgba(43, 182, 255, 0.16);
}

.utility-form-card textarea,
.utility-form-card input,
.utility-form-card select,
.utility-list-card input,
.utility-list-card select {
  background:
    linear-gradient(180deg, rgba(9, 23, 35, 0.86), rgba(6, 16, 27, 0.82)),
    rgba(7, 19, 31, 0.78);
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.project-todo-item,
.calendar-item,
.doc-item {
  transition: transform 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.project-todo-item:hover,
.calendar-item:hover,
.doc-item:hover {
  transform: translateY(-1px);
  border-color: rgba(132, 204, 255, 0.4);
}

.admin-head-card {
  border-color: rgba(126, 199, 255, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(181, 229, 255, 0.1),
    0 20px 36px rgba(2, 11, 20, 0.3);
}

.admin-head-card::after {
  content: "";
  position: absolute;
  top: -35%;
  right: -12%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 182, 255, 0.22), transparent 72%);
  pointer-events: none;
}

.admin-status-card {
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.admin-status-card:hover {
  transform: translateY(-2px);
  border-color: rgba(133, 206, 255, 0.45);
  box-shadow: 0 14px 26px rgba(4, 14, 24, 0.24);
}

.admin-card {
  border-color: rgba(124, 197, 255, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(184, 229, 255, 0.08),
    0 18px 30px rgba(2, 11, 20, 0.24);
}

.admin-card h3 {
  font-size: 15px;
  letter-spacing: 0.01em;
}

.admin-card-account {
  border-left: 3px solid rgba(43, 182, 255, 0.52);
}

.admin-card-users {
  border-left: 3px solid rgba(25, 221, 156, 0.5);
}

.admin-card-api {
  border-left: 3px solid rgba(255, 165, 103, 0.56);
}

.admin-card-permissions {
  border-left: 3px solid rgba(204, 159, 255, 0.52);
}

.admin-user-item {
  border-color: rgba(117, 189, 245, 0.26);
  background:
    linear-gradient(145deg, rgba(25, 56, 84, 0.26), rgba(10, 23, 36, 0.7)),
    rgba(11, 25, 38, 0.58);
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.admin-user-item:hover {
  transform: translateY(-1px);
  border-color: rgba(132, 204, 255, 0.42);
  box-shadow: 0 12px 22px rgba(4, 14, 24, 0.2);
}

.admin-user-meta {
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(113, 183, 238, 0.32);
  background: rgba(20, 47, 70, 0.54);
}

.admin-user-actions select {
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(8, 21, 33, 0.72);
  color: var(--text-main);
  padding: 5px 8px;
}

.admin-permission-group {
  border-color: rgba(124, 197, 255, 0.28);
  background:
    linear-gradient(145deg, rgba(25, 56, 84, 0.18), rgba(10, 23, 36, 0.7)),
    rgba(10, 23, 36, 0.62);
}

/* Dashboard Overhaul: hierarchy + handling */
.dashboard-hero {
  border-color: rgba(124, 197, 255, 0.38);
  background:
    radial-gradient(circle at 14% -20%, rgba(83, 174, 243, 0.22), transparent 45%),
    linear-gradient(145deg, rgba(15, 38, 59, 0.92), rgba(8, 22, 35, 0.84));
  box-shadow:
    inset 0 1px 0 rgba(186, 231, 255, 0.12),
    0 18px 36px rgba(3, 12, 20, 0.34);
}

.dash-hero-btn {
  min-height: 36px;
  border-color: rgba(127, 199, 250, 0.34);
  background: rgba(14, 35, 54, 0.7);
}

.dash-hero-btn:hover {
  border-color: rgba(152, 219, 255, 0.55);
  transform: translateY(-1px);
}

.dash-hero-btn.locked {
  opacity: 0.62;
  filter: grayscale(0.2);
  cursor: not-allowed;
}

.dash-hero-btn.locked:hover {
  transform: none;
}

.dashboard-welcome {
  margin-bottom: 16px;
  border-color: rgba(137, 210, 255, 0.45);
  color: #eaf6ff;
}

.dashboard-welcome h1 {
  color: #eaf6ff !important;
}

.dashboard-welcome p {
  color: #bcd4ea !important;
}

.dashboard-welcome::before,
.dashboard-welcome::after {
  z-index: 0;
}

.dashboard-welcome-head {
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
}

.dashboard-welcome-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 2;
}

.dashboard-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(123, 193, 243, 0.34);
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(12, 33, 51, 0.7);
  color: var(--text-soft);
  font-size: 12px;
}

.dashboard-pill i {
  color: var(--accent);
}

.dashboard-stat-card {
  min-height: 136px;
}

.dashboard-stat-meta {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dashboard-stat-meta span {
  color: var(--text-soft);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
}

.dashboard-section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.dashboard-head-chip {
  border: 1px solid rgba(121, 189, 239, 0.35);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  color: var(--text-soft);
  background: rgba(13, 35, 54, 0.68);
  white-space: nowrap;
}

.dashboard-panel {
  border-color: rgba(121, 194, 245, 0.3);
}

.dashboard-panel-head h3 {
  font-size: 18px;
  letter-spacing: 0.01em;
}

.dashboard-panel-head p {
  color: var(--text-soft);
}

.dash-card {
  min-height: 132px;
  padding: 18px;
  border-color: rgba(117, 185, 236, 0.3);
}

.dash-card i {
  width: 36px;
  height: 36px;
}

.dash-card span {
  font-size: 15px;
}

.dash-card small {
  font-size: 12px;
  line-height: 1.35;
}

.activity-item {
  border: 1px solid rgba(113, 180, 230, 0.24);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  background: rgba(14, 36, 56, 0.55);
  padding: 12px 14px;
  align-items: flex-start;
}

.activity-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.activity-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.activity-type {
  border: 1px solid rgba(112, 182, 233, 0.32);
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  background: rgba(14, 37, 56, 0.7);
}

.activity-meta {
  margin-left: auto;
  text-align: right;
  min-width: 120px;
}

.activity-time {
  font-size: 11px;
}

.activity-date {
  font-size: 10px;
  color: var(--text-soft);
}

.dashboard-website-widget {
  border-color: rgba(118, 188, 239, 0.3);
  padding: 0;
  overflow: hidden;
}

.dashboard-websites {
  min-height: 220px;
}

.dashboard-websites-head h3,
.dashboard-websites-head p {
  color: var(--text-main);
}

.dashboard-websites-head p {
  color: var(--text-muted);
}

.dashboard-websites h3 {
  color: #eaf6ff !important;
}

.dashboard-websites p {
  color: #b7cfe6 !important;
}

.dashboard-websites-head,
.dashboard-website-grid,
.dashboard-welcome-head,
.dashboard-welcome-pills {
  position: relative;
  z-index: 2;
}

.dashboard-website-preview {
  height: 70px;
  border-bottom: 1px solid rgba(126, 196, 246, 0.22);
  background:
    linear-gradient(120deg, rgba(40, 119, 179, 0.36), rgba(13, 35, 54, 0.85)),
    radial-gradient(circle at 85% 20%, rgba(26, 201, 196, 0.22), transparent 46%);
  display: flex;
  align-items: flex-end;
  padding: 10px 12px;
}

.dashboard-website-preview-domain {
  border: 1px solid rgba(129, 199, 248, 0.32);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  color: #d6efff;
  background: rgba(9, 25, 40, 0.55);
}

.dashboard-website-body {
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dashboard-website-domain {
  font-size: 11px;
  color: var(--text-soft);
}

.dashboard-website-actions {
  padding: 0 12px 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.dashboard-website-actions .btn {
  min-height: 34px;
}

.dash-card:focus-visible,
.dash-hero-btn:focus-visible {
  transform: translateY(-1px);
}

@media (max-width: 1080px) {
  .dashboard-stat-card {
    min-height: 124px;
  }

  .activity-meta {
    min-width: 98px;
  }
}

@media (max-width: 760px) {
  .dashboard-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-welcome-pills {
    flex-direction: column;
  }

  .dashboard-pill {
    width: 100%;
    justify-content: flex-start;
  }

  .activity-item {
    flex-wrap: wrap;
  }

  .activity-meta {
    margin-left: 0;
    width: 100%;
    text-align: left;
  }

  .dashboard-website-actions {
    grid-template-columns: 1fr;
  }
}

@keyframes welcomeGlowDrift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(24px, -10px, 0);
  }
  100% {
    transform: translate3d(8px, 12px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-welcome::before {
    animation: none;
  }
}
