/* =============================================
   TOOLS — Apple-inspired UI
   ============================================= */

/* Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

::selection {
  background: rgba(0, 113, 227, 0.15);
  color: var(--color-text-primary);
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-accent-hover);
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: none;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  overflow-wrap: break-word;
}

/* ── Container ──────────────────────────── */
.container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ─────────────────────────────── */
.tools-header {
  background-color: rgba(245, 245, 247, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.tools-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 24px;
}

.tools-header__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--color-text-primary);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.tools-header__logo-icon {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #1d1d1f;
}

.tools-header__nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.tools-header__link {
  text-decoration: none;
  color: var(--color-text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.tools-header__link:hover,
.tools-header__link.is-active {
  color: var(--color-accent);
}

.tools-header__cta {
  background-color: var(--color-text-primary);
  color: white;
  padding: 6px 14px;
  border-radius: 14px;
  font-size: 0.85rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
  display: inline-block;
}

.tools-header__cta:hover {
  opacity: 0.8;
  color: white;
}

/* Mobile Menu */
.tools-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
}

.tools-menu-toggle span {
  width: 100%;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 1px;
  transition:
    transform 0.3s ease,
    opacity 0.2s ease;
}

.tools-menu-toggle.is-open span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}
.tools-menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.tools-menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}

.tools-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--color-bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
}

.tools-mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.tools-mobile-menu a {
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.tools-mobile-menu a:hover {
  color: var(--color-accent);
}

@media (max-width: 768px) {
  .tools-header__nav {
    display: none;
  }
  .tools-menu-toggle {
    display: flex;
  }
  .tools-mobile-menu {
    display: flex;
  }
}

/* ── Hero (Tool Page) ───────────────────── */
.tool-hero {
  text-align: center;
  padding: 100px 0 80px;
}

.tool-hero__overline {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}

.tool-hero__title {
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 12px;
}

.tool-hero__subtitle {
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  max-width: 650px;
  margin: 0 auto;
  letter-spacing: -0.015em;
}

.tool-hero__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* ── Section ────────────────────────────── */
.tool-section {
  padding: 80px 0;
}

.tool-section--alt {
  background-color: var(--color-card-bg);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.tool-section__title {
  text-align: center;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 60px;
}

.tool-section__title span {
  color: var(--color-accent);
}

.tool-section__intro {
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 1.15rem;
  max-width: 600px;
  margin: -40px auto 40px;
}

/* ── Cards ──────────────────────────────── */
.tool-card {
  background-color: var(--color-card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.tool-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.tool-card__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  background: rgba(52, 199, 89, 0.15);
  color: #248a3d;
  margin-bottom: 12px;
}

.tool-card__title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.tool-card__desc {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.tool-card__link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-accent);
}

.tool-card__link:hover {
  text-decoration: underline;
}

/* Tool card used as link */
a.tool-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

a.tool-card .tool-card__title {
  color: var(--color-text-primary);
}

/* ── Feature Grid ───────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.feature-grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.feature-grid__item {
  background-color: var(--color-card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 32px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.feature-grid__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.feature-grid__icon {
  width: 48px;
  height: 48px;
  background-color: rgba(0, 113, 227, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.feature-grid__title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-grid__desc {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.feature-grid__desc code {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  font-size: 0.88em;
  font-family: var(--font-mono);
  color: var(--color-text-primary);
}

@media (max-width: 640px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .feature-grid--4 {
    grid-template-columns: 1fr;
  }
}

/* ── Steps ──────────────────────────────── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step__num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--color-accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.step__content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.step__content p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ── Feature Block (within cards) ───────── */
.feature-block {
  margin-bottom: 28px;
}

.feature-block:last-child {
  margin-bottom: 0;
}

.feature-block h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-block p,
.feature-block ul,
.feature-block ol {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  margin-bottom: 12px;
  line-height: 1.6;
}

.feature-block ul,
.feature-block ol {
  padding-left: 20px;
}

.feature-block ul {
  list-style: disc;
}
.feature-block ol {
  list-style: decimal;
}

.feature-block li {
  margin-bottom: 6px;
}

.feature-block strong {
  color: var(--color-text-primary);
}

/* ── Table ──────────────────────────────── */
.tool-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 16px 0 24px;
  background: var(--color-card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.tool-table th,
.tool-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.92rem;
}

.tool-table th {
  background: var(--color-bg-elevated);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
}

.tool-table tr:last-child td {
  border-bottom: none;
}

.tool-table td .tag,
.tool-table code {
  background: rgba(0, 113, 227, 0.1);
  color: var(--color-accent);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.85em;
  font-weight: 600;
}

.tool-table td code {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
}

.tool-table .kbd {
  display: inline-block;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 2px 7px;
  font-size: 0.82em;
  font-family: var(--font-mono);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  color: var(--color-text-primary);
  font-weight: 500;
}

/* ── Badges ─────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  margin-top: 2px;
}

.badge--feature {
  background-color: rgba(52, 199, 89, 0.15);
  color: #248a3d;
}

.badge--note {
  background-color: rgba(0, 113, 227, 0.15);
  color: var(--color-accent);
}

.badge--green {
  background-color: rgba(52, 199, 89, 0.15);
  color: #248a3d;
}

.badge--blue {
  background-color: rgba(0, 113, 227, 0.15);
  color: var(--color-accent);
}

.badge--orange {
  background-color: rgba(255, 149, 0, 0.15);
  color: #c93400;
}

/* ── Changelog ──────────────────────────── */
.changelog-card {
  background-color: var(--color-card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.changelog-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.changelog-card__version {
  background-color: var(--color-text-primary);
  color: white;
  padding: 4px 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 1rem;
}

.changelog-card__date {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  font-family: var(--font-mono);
}

.changelog-card__intro {
  font-size: 1.05rem;
  color: var(--color-text-primary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.changelog-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.changelog-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
}

.changelog-item__text {
  color: var(--color-text-primary);
  line-height: 1.6;
}

.changelog-item__text strong {
  font-weight: 600;
}

/* ── Code / Tree ────────────────────────── */
.tree-block {
  background-color: var(--color-code-bg);
  color: var(--color-code-text);
  padding: 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.6;
  overflow-x: auto;
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  white-space: pre;
}

/* ── Preset Card ────────────────────────── */
.preset-card {
  background-color: var(--color-card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.preset-card__title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.preset-card__desc {
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
  line-height: 1.6;
}

.preset-card__root {
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.preset-card__root strong {
  color: var(--color-text-primary);
}

.preset-card__root code {
  background: rgba(0, 113, 227, 0.1);
  color: var(--color-accent);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.88em;
  font-weight: 600;
}

/* ── Audience Grid ──────────────────────── */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 800px;
  margin: 40px auto 0;
}

.audience-card {
  background-color: var(--color-card-bg);
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  text-align: left;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.audience-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.audience-card__icon {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.audience-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.audience-card p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

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

/* ── App Preview ────────────────────────── */
.app-preview {
  width: 100%;
  max-width: 800px;
  height: 450px;
  margin: 0 auto;
  background: linear-gradient(180deg, #2c2c2e 0%, #1c1c1e 100%);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a1a1a6;
  font-size: 1rem;
  font-weight: normal;
}

.mac-dots {
  position: absolute;
  top: 15px;
  left: 16px;
  display: flex;
  gap: 8px;
}

.mac-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.mac-dots span:nth-child(1) {
  background-color: #ff5f56;
}
.mac-dots span:nth-child(2) {
  background-color: #ffbd2e;
}
.mac-dots span:nth-child(3) {
  background-color: #27c93f;
}

/* ── Separator ──────────────────────────── */
.sep-diamond {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 60px 0;
}

.sep-diamond__line {
  width: 30px;
  height: 1px;
  background: var(--color-text-secondary);
  opacity: 0.3;
}

.sep-diamond__dot {
  width: 5px;
  height: 5px;
  background: var(--color-text-secondary);
  transform: rotate(45deg);
  opacity: 0.4;
  flex-shrink: 0;
}

/* ── Footer ─────────────────────────────── */
.tools-footer {
  background-color: var(--color-card-bg);
  padding: 60px 0 40px;
  text-align: center;
  border-top: 1px solid var(--color-border);
  margin-top: 80px;
}

.tools-footer__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
  transition: color 0.2s;
}

.tools-footer__back:hover {
  color: var(--color-accent);
}

.tools-footer__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.tools-footer__links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color 0.2s;
}

.tools-footer__links a:hover {
  color: var(--color-accent);
}

.tools-footer__copy {
  color: var(--color-text-secondary);
  font-size: 0.85rem;
}

.tools-footer__copy a {
  color: var(--color-text-secondary);
}

/* ── Developer Card ─────────────────────── */
.developer-card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.developer-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
}

.developer-card .developer-title {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

.developer-card a {
  color: var(--color-accent);
}

.developer-card a:hover {
  text-decoration: underline;
}

/* ── Buttons ────────────────────────────── */
.btn-primary {
  background-color: var(--color-accent);
  color: white;
  padding: 14px 28px;
  border-radius: 24px;
  font-size: 1.1rem;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  color: white;
}

/* ── Scroll Reveal ──────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-delay="1"] {
  transition-delay: 100ms;
}
[data-delay="2"] {
  transition-delay: 200ms;
}
[data-delay="3"] {
  transition-delay: 300ms;
}
[data-delay="4"] {
  transition-delay: 400ms;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ── Responsive ─────────────────────────── */
@media (max-width: 768px) {
  .tool-hero {
    padding: 80px 0 60px;
  }
  .tool-hero__title {
    font-size: 2.5rem;
  }
  .tool-hero__subtitle {
    font-size: 1.1rem;
  }
  .tool-section {
    padding: 60px 0;
  }
  .tool-section__title {
    font-size: 2rem;
  }
  .app-preview {
    height: 280px;
  }
}

/* =============================================
   APP WINDOW MOCKUP
   ============================================= */

.app-window-wrap {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.app-window {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--mac-bg);
  border-radius: 12px;
  border: 1px solid var(--mac-border);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Titlebar */
.app-window .titlebar {
  height: 40px;
  flex-shrink: 0;
  background-color: var(--mac-sidebar);
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid var(--mac-border);
  position: relative;
}

.app-window .traffic-lights {
  display: flex;
  gap: 8px;
}

.app-window .traffic-lights span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.app-window .close {
  background-color: #ff5f56;
}
.app-window .minimize {
  background-color: #ffbd2e;
}
.app-window .maximize {
  background-color: #27c93f;
}

.app-window .title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: var(--mac-text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* Main Area */
.app-window .main-area {
  display: flex;
  flex: 1;
  min-height: 0;
}

/* Sidebar */
.app-window .sidebar {
  width: 200px;
  flex-shrink: 0;
  background-color: var(--mac-sidebar);
  border-right: 1px solid var(--mac-border);
  padding: 16px 10px;
}

.app-window .sidebar-section {
  font-size: 0.7rem;
  color: var(--mac-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  padding-left: 10px;
  font-weight: 600;
}

.app-window .sidebar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  color: var(--mac-text);
  border-radius: 6px;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.app-window .sidebar-item.active {
  background-color: var(--mac-accent-bg);
  color: var(--mac-accent);
}

/* Content Area */
.app-window .content-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.app-window .content-header {
  padding: 20px 30px;
  text-align: center;
  border-bottom: 1px solid var(--mac-border);
  flex-shrink: 0;
}

.app-window .content-header h1 {
  color: white;
  font-size: clamp(0.8rem, 1.5vw, 1.3rem);
  font-weight: 400;
  line-height: 1.4;
}

.app-window .content-header h1 strong {
  font-weight: 600;
}

.app-window .content-body {
  display: flex;
  flex: 1;
  min-height: 0;
}

/* Templates Column */
.app-window .templates-col {
  flex: 1;
  border-right: 1px solid var(--mac-border);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.app-window .col-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.app-window .tree-node {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--mac-text);
  font-size: 0.8rem;
  padding: 3px 0;
}

.app-window .tree-node.indent-1 {
  padding-left: 20px;
}
.app-window .tree-node.indent-2 {
  padding-left: 40px;
}

.app-window .folder-icon {
  color: var(--mac-accent);
  font-size: 0.95rem;
}

.app-window .tree-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.app-window .advanced-naming {
  margin-top: auto;
  color: var(--mac-text-muted);
  font-size: 0.8rem;
  padding-top: 12px;
}

.app-window .advanced-naming strong {
  color: white;
  display: block;
  margin-bottom: 4px;
}

/* Tags Column */
.app-window .tags-col {
  flex: 1;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.app-window .preview-box {
  background-color: var(--mac-sidebar);
  border: 1px solid var(--mac-border);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--mac-text-muted);
  line-height: 1.6;
}

.app-window .tag-selector {
  background-color: var(--mac-sidebar);
  border: 1px solid var(--mac-border);
  border-radius: 8px;
  overflow: hidden;
}

.app-window .tag-input {
  padding: 10px 14px;
  border-bottom: 1px solid var(--mac-border);
  color: white;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background-color: var(--mac-bg);
  border-left: 3px solid var(--mac-accent);
}

.app-window .tag-list {
  padding: 6px;
}

.app-window .tag-list-item {
  padding: 6px 8px;
  color: var(--mac-text);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  border-radius: 4px;
}

.app-window .tag-list-item:hover {
  background-color: var(--mac-bg);
}

.app-window .tags-footer {
  margin-top: auto;
  color: var(--mac-text-muted);
  font-size: 0.8rem;
  padding-top: 12px;
}

/* Responsive */
@media (max-width: 768px) {
  .app-window .sidebar {
    display: none;
  }
  .app-window .content-header h1 {
    font-size: 0.75rem;
  }
  .app-window .content-body {
    flex-direction: column;
  }
  .app-window .templates-col {
    border-right: none;
    border-bottom: 1px solid var(--mac-border);
  }
  .app-window .tree-text {
    font-size: 0.65rem;
  }
}
