* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0;
  padding: 0;
  background: #0F172A;
  color: #F8FAFC;
  font-family: -apple-system, BlinkMacSystemFont, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
}
.org-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 8px 10px 20px;
}
.org-hero {
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  border: 1px solid #334155;
  border-radius: 14px;
  padding: 9px 11px;
  margin-bottom: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
}
.org-hero-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
}
.org-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.util-btn {
  background: #1E293B;
  color: #E2E8F0;
  border: 1px solid #475569;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}
.util-btn:active { background: #334155; }
.org-search-row {
  position: relative;
  margin-bottom: 7px;
}
.org-search-input {
  width: 100%;
  background: #0F172A;
  color: #F8FAFC;
  border: 1.5px solid #3B82F6;
  border-radius: 10px;
  padding: 8px 34px 8px 11px;
  font-size: 0.86rem;
  outline: none;
}
.org-search-input::placeholder { color: #64748B; }
.clear-search-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: #334155;
  color: #F8FAFC;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  cursor: pointer;
}
.chosung-bar {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 4px;
  margin-bottom: 7px;
  padding-bottom: 2px;
}
.chosung-btn {
  background: #1E293B;
  color: #CBD5E1;
  border: 1px solid #334155;
  border-radius: 7px;
  min-width: 29px;
  height: 27px;
  padding: 0 6px;
  font-size: 0.76rem;
  font-weight: 700;
  flex-shrink: 0;
  cursor: pointer;
}
.chosung-btn.active {
  background: #2563EB;
  color: #FFFFFF;
  border-color: #60A5FA;
}
.org-toolbar-row {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 6px;
}
.seg-group {
  display: flex;
  flex-wrap: nowrap;
  flex-shrink: 0;
  background: #0F172A;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}
.seg-btn {
  background: transparent;
  color: #94A3B8;
  border: none;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.seg-btn.active {
  background: #2563EB;
  color: #FFFFFF;
}
.org-stats-bar {
  font-size: 0.75rem;
  color: #93C5FD;
  font-weight: 700;
}
.org-toast-banner {
  background: #1D4ED8;
  color: #FFFFFF;
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 8px;
  font-size: 0.82rem;
  font-weight: 600;
}
.quick-dock-card {
  background: #1E293B;
  border: 1px solid #3B82F6;
  border-radius: 12px;
  padding: 7px 10px;
  margin-bottom: 8px;
}
.quick-dock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 800;
  color: #93C5FD;
  margin-bottom: 5px;
}
.dock-count {
  background: #2563EB;
  color: #FFFFFF;
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 0.7rem;
}
.quick-dock-list {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 6px;
  padding-bottom: 2px;
}
.dock-pill {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 6px;
  background: #0F172A;
  color: #F8FAFC;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 5px 9px;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.dock-pill-icon img {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  vertical-align: middle;
}
.bento-board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 12px;
}
@media (min-width: 600px) {
  .bento-board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 960px) {
  .bento-board-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.bento-folder-card {
  background: #1E293B;
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.bento-folder-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #334155;
  padding-bottom: 8px;
}
.bento-folder-title {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 800;
  color: #F8FAFC;
}
.bento-folder-badge {
  background: #0F172A;
  color: #93C5FD;
  border: 1px solid #3B82F6;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 0.75rem;
  font-weight: 700;
}
.bento-folder-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 8px;
}
.density-wrap-compact .bento-folder-items {
  grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
}
.density-wrap-large .bento-folder-items {
  grid-template-columns: 1fr;
}
.all-apps-grid-card {
  background: #1E293B;
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 12px;
}
.all-apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 9px;
}
.app-tile {
  background: #0F172A;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 8px 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.app-tile.density-large {
  padding: 12px;
}
.app-tile-main {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  min-width: 0;
  cursor: pointer;
}
.app-icon-wrap {
  flex-shrink: 0;
}
.app-real-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: block;
}
.app-tile.density-large .app-real-icon,
.app-tile.density-large .app-emoji-icon {
  width: 46px;
  height: 46px;
  font-size: 1.4rem;
}
.app-emoji-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}
.app-meta {
  min-width: 0;
  flex: 1;
}
.app-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: #F8FAFC;
  line-height: 1.28;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.app-tile.density-large .app-name {
  font-size: 0.96rem;
}
.app-sub {
  margin-top: 3px;
}
.app-badge {
  display: inline-block;
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.68rem;
  font-weight: 700;
}
.badge-installed {
  background: rgba(22, 163, 74, 0.2);
  color: #4ADE80;
  border: 1px solid rgba(74, 222, 128, 0.4);
}
.badge-preset {
  background: rgba(59, 130, 246, 0.16);
  color: #93C5FD;
  border: 1px solid rgba(96, 165, 250, 0.35);
}
.app-tile-actions {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-shrink: 0;
}
.pin-btn, .info-btn {
  background: #1E293B;
  color: #CBD5E1;
  border: 1px solid #334155;
  border-radius: 7px;
  width: 26px;
  height: 24px;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0;
}
.pin-btn.active {
  background: rgba(234, 179, 8, 0.2);
  color: #FACC15;
  border-color: #EAB308;
}
.cleanup-list-card {
  background: #1E293B;
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cleanup-row {
  background: #0F172A;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.cleanup-main {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  min-width: 200px;
  flex: 1;
}
.cleanup-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #F8FAFC;
}
.cleanup-pkg {
  font-size: 0.74rem;
  color: #64748B;
}
.cleanup-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.cat-select {
  background: #1E293B;
  color: #F8FAFC;
  border: 1px solid #475569;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 0.78rem;
}
.cleanup-info-btn, .primary-action-btn {
  background: #2563EB;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.empty-state-card {
  background: #1E293B;
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 28px 18px;
  text-align: center;
  color: #CBD5E1;
}
.org-footer {
  margin-top: 18px;
  text-align: center;
  font-size: 0.76rem;
  color: #64748B;
}
.org-loading-shell {
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
}
.org-loading-card {
  width: 100%;
  max-width: 440px;
  background: #1E293B;
  border: 2px solid #3B82F6;
  border-radius: 20px;
  padding: 24px 22px;
  text-align: center;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
}
.org-loading-badge {
  display: inline-block;
  background: #172554;
  color: #93C5FD;
  border: 1px solid #2563EB;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.76rem;
  font-weight: 800;
}
.org-loading-title {
  margin: 14px 0 6px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #F8FAFC;
}
.org-loading-subtitle {
  margin: 0 0 18px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #94A3B8;
}
.org-loading-bar-track {
  width: 100%;
  height: 13px;
  background: #0F172A;
  border: 1px solid #334155;
  border-radius: 999px;
  overflow: hidden;
}
.org-loading-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563EB 0%, #38BDF8 100%);
  border-radius: 999px;
  transition: width 0.14s ease-out;
}
.org-loading-status {
  margin-top: 11px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #60A5FA;
}
.org-loading-current {
  margin-top: 10px;
  background: #0F172A;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.79rem;
  color: #E2E8F0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.org-loading-note {
  margin-top: 14px;
  font-size: 0.7rem;
  color: #64748B;
}
