.connections-page.tool-catalog { width: min(1040px, calc(100% - 112px)); padding: 26px 0 46px; }
.tool-catalog .connections-intro h2 { font-size: clamp(38px, 4vw, 56px); margin: 12px 0 20px; }
.tool-catalog .connections-intro p { max-width: 58ch; font-size: 13px; }
.tool-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 30px 0 34px; }
.tool-preview-note { display: flex; align-items: center; gap: 8px; color: #aab8a7; font-size: 10px; line-height: 1.8; margin: 0; }
.tool-search { display: flex; align-items: center; gap: 10px; width: 260px; max-width: 100%; padding: 10px 0; border-bottom: 1px solid rgba(var(--accent), .2); }
.tool-search .icon { width: 17px; height: 17px; color: rgba(var(--accent), .7); }
.tool-search input { min-width: 0; width: 100%; border: 0; outline: 0; background: none; color: #e6eee5; font-size: 12px; }
.tool-search:focus-within { border-color: rgb(var(--accent)); }
.tool-search input::placeholder { color: #9aab9b; }
.tool-search input:disabled { opacity: .5; }
.tool-group { margin-top: 30px; }
.tool-group h3 { margin: 0 0 13px; font-size: 12px; font-weight: 500; letter-spacing: .025em; color: #d6e0d2; }
.tool-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 44px; align-items: start; }
.tool-entry { min-width: 0; border-radius: 12px; }
.tool-entry > summary { display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 10px 8px; margin-inline: -8px; border-radius: 12px; cursor: pointer; list-style: none; transition: background 180ms; }
.tool-entry > summary::-webkit-details-marker { display: none; }
.tool-entry > summary:hover, .tool-entry[open] > summary { background: rgba(var(--accent), .035); }
.tool-entry > summary:focus-visible { outline: 2px solid rgba(var(--accent), .7); outline-offset: 3px; }
.tool-icon { display: inline-grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 11px; background: rgba(255,255,255,.07); overflow: hidden; }
.tool-icon svg, .tool-icon .icon { width: 25px; height: 25px; }
.tool-icon-whatsapp { background: #1a8757; color: #f0fff6; }
.tool-icon-moodle { background: #db812d; color: #fff5e9; }
.tool-icon-canva { background: linear-gradient(140deg,#1ecdd1,#3b73eb 55%,#8124d5); color: white; }
.canva-letter { font-family: Georgia,serif; font-style: italic; font-size: 30px; line-height: 1; }
.tool-icon-adobe { background: #161f27; color: #f62d25; border: 1px solid rgba(255,255,255,.06); }
.tool-icon-drive { background: #f3f5ed; }
.tool-icon-notion { background: #f2f2eb; color: #171a19; }
.notion-letter { font-family: Georgia,serif; font-size: 28px; line-height: 1; font-weight: 700; }
.tool-icon-onedrive { background: #142c42; }
.tool-icon-calendar { background: #eaf1ff; color: #3173d9; border-top: 7px solid #3173d9; border-radius: 8px; }
.calendar-number { font-size: 18px; font-weight: 600; line-height: 1; margin-top: -2px; }
.tool-copy { display: block; flex: 1; min-width: 0; }
.tool-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 9px; color: #e3ebe0; font-size: 14px; line-height: 1.5; }
.tool-description { display: block; margin-top: 3px; color: #aab8a7; font-size: 11px; line-height: 1.6; }
.tool-mark { color: rgba(var(--accent), .8); font-size: 9px; }
.tool-plan { color: rgba(var(--accent), .85); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.tool-expand { flex: 0 0 20px; width: 20px; height: 20px; margin-left: 7px; fill: none; stroke: #bac9b7; stroke-width: 1.3; stroke-linecap: round; transition: transform 180ms; }
.tool-entry[open] .tool-expand { transform: rotate(45deg); }
.tool-detail { padding: 17px 18px 20px; margin-top: 7px; border: 1px solid rgba(var(--accent), .13); border-radius: 12px; background: rgba(var(--deep), .14); }
.tool-detail > p { margin: 0 0 20px; color: #bdc9bb; font-size: 12px; line-height: 1.8; }
.tool-example-label { display: block; color: rgba(var(--accent), .8); font-size: 9px; letter-spacing: .025em; }
.tool-detail blockquote { margin: 9px 0 20px; padding: 12px 14px; border-left: 1px solid rgba(var(--accent), .35); border-radius: 0 10px 10px 0; background: rgba(var(--accent), .035); color: #d9e3d5; font-size: 12px; line-height: 1.7; }
.tool-detail-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.tool-detail-actions > span { font-size: 9px; color: #aab8a7; }
.tool-detail-actions button { text-align: left; }
.tool-detail-actions button[aria-pressed="true"] { color: #bccbb6; background: transparent; border-color: rgba(var(--accent), .15); }
.tool-detail-actions button:disabled { opacity: .45; cursor: default; }
.tool-empty { padding: 32px 0; color: #bdc9bb; font-size: 13px; }
.tool-feedback { margin: 22px 0 0; font-size: 11px; line-height: 1.8; color: rgb(var(--accent)); }
.tool-feedback:empty { display: none; }
.tool-catalog-note { margin: 30px 0 0; color: #9cac98; font-size: 10px; line-height: 1.8; max-width: 74ch; }
.moodle-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.moodle-mode-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 24px; }
.moodle-mode-button { min-height: 42px; padding: 10px 12px; border: 1px solid rgba(var(--accent), .16); border-top-color: #ffffff30; border-radius: 10px; background: linear-gradient(135deg, #ffffff09, transparent), rgba(var(--deep), .08); color: #b9c9bc; font-size: 10px; font-weight: 400; line-height: 1.5; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.moodle-mode-button[aria-pressed="true"] { border-color: rgba(var(--accent), .5); background: rgba(var(--accent), .09); color: #e6eee5; }
.moodle-mode-button:hover:not(:disabled) { border-color: rgba(var(--accent), .45); }
.moodle-mode-button:disabled { opacity: .5; cursor: default; }
.moodle-editor-label { margin-bottom: 8px; }
.moodle-editor { overflow: hidden; border: 1px solid rgba(var(--accent), .2); border-radius: 10px; background: rgba(var(--deep), .32); }
.moodle-editor:focus-within { border-color: rgba(var(--accent), .65); box-shadow: 0 0 0 1px rgba(var(--accent), .35); }
.moodle-editor-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 4px 12px; border-bottom: 1px solid rgba(var(--accent), .12); color: #aab8a7; font-size: 9px; letter-spacing: .08em; }
.moodle-editor-toolbar button { min-height: 30px; padding: 5px 0 5px 10px; border: 0; background: none; color: #bdc9bb; font-size: 10px; }
.moodle-editor textarea { display: block; width: 100%; min-height: 190px; max-height: 420px; resize: vertical; border: 0; outline: 0; padding: 14px; background: transparent; color: #d8e9df; font: 11px/1.8 Consolas, 'Courier New', monospace; tab-size: 4; }
.moodle-editor textarea::placeholder { color: #8b9f96; }
.moodle-form .moodle-code-analysis { margin: 12px 0 22px; color: #aab8a7; font-size: 10px; line-height: 1.8; overflow-wrap: anywhere; }
.moodle-form .moodle-code-analysis[data-state="ready"] { color: rgb(var(--accent)); }
.moodle-form .moodle-code-analysis[data-state="error"] { color: #efbcae; }
.moodle-field { display: block; margin-bottom: 17px; color: #c7d4c6; font-size: 11px; }
.moodle-field input { display: block; width: 100%; margin-top: 8px; padding: 11px 12px; border: 1px solid rgba(var(--accent), .2); border-radius: 8px; background: rgba(var(--deep), .2); color: #e3ebe0; font-size: 12px; }
.moodle-field input:read-only { color: #aab8a7; font-size: 11px; }
.moodle-field input:focus-visible { outline: 2px solid rgba(var(--accent), .65); outline-offset: 2px; }
.moodle-form small, .moodle-note, .moodle-checked { display: block; color: #aab8a7; font-size: 10px; line-height: 1.7; }
.moodle-form small { margin: -6px 0 19px; }
.tool-detail > .moodle-feedback { margin: 20px 0 0; color: rgb(var(--accent)); font-size: 11px; line-height: 1.8; }
.moodle-feedback:empty { display: none; }
.moodle-feedback[role="alert"] { color: #f1b8a8; }
.moodle-connected h4 { margin: 0 0 8px; font-size: 15px; font-weight: 400; }
.moodle-connected p { margin: 0 0 8px; font-size: 12px; color: #bdc9bb; }
.moodle-courses { max-height: 160px; overflow-y: auto; padding: 0 0 0 15px; margin: 14px 0; color: #bdc9bb; font-size: 11px; line-height: 1.8; }
.moodle-courses:empty { display: none; }
.moodle-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 16px; }
.moodle-course-directory { margin: 14px 0 24px; color: #bdc9bb; font-size: 11px; }
.moodle-course-directory summary { cursor: pointer; padding: 6px 0; }
.moodle-learning { border-top: 1px solid rgba(var(--accent), .15); padding-top: 24px; margin-top: 20px; }
.moodle-learning .moodle-learning-hint { color: #aab8a7; font-size: 10px; line-height: 1.8; margin: 8px 0 20px; }
.moodle-field select { display: block; width: 100%; min-width: 0; margin-top: 8px; padding: 11px 28px 11px 12px; border: 1px solid rgba(var(--accent), .25); border-radius: 8px; color: #e3ebe0; background: rgba(var(--deep), .35); font: inherit; color-scheme: dark; text-overflow: ellipsis; }
.moodle-field select:focus-visible { outline: 2px solid rgba(var(--accent), .65); outline-offset: 2px; }
.moodle-learning-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin: 20px 0; font-size: 9px; color: #aab8a7; }
.moodle-learning a { color: rgb(var(--accent)); text-decoration: none; }
.moodle-learning a:hover { text-decoration: underline; }
.moodle-learning .moodle-learning-feedback { margin: 18px 0; font-size: 11px; line-height: 1.8; color: rgb(var(--accent)); }
.moodle-learning-feedback[role="alert"] { color: #efbcae; }
.moodle-learning-feedback:empty, .moodle-learning-notices:empty { display: none; }
.moodle-learning-notices { padding-left: 16px; color: #dbc9ac; font-size: 10px; line-height: 1.8; }
.moodle-learning-section { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid rgba(var(--accent), .12); }
.moodle-learning-section h5 { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; font-weight: 400; margin: 0 0 16px; }
.moodle-learning-section h5 span { color: rgb(var(--accent)); }
.moodle-learning .moodle-learning-empty { color: #aab8a7; font-size: 11px; line-height: 1.8; }
.moodle-assignment-list, .moodle-material-list { max-height: 380px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(var(--accent), .3) transparent; padding-right: 8px; }
.moodle-assignment { padding: 0 0 16px; margin: 0 0 16px; border-bottom: 1px solid rgba(var(--accent), .1); }
.moodle-assignment:last-child { border-bottom: 0; margin-bottom: 0; }
.moodle-assignment h6 { font-size: 12px; font-weight: 400; line-height: 1.7; margin: 0 0 8px; overflow-wrap: anywhere; }
.moodle-assignment .moodle-due { color: rgb(var(--accent)); font-size: 11px; }
.moodle-assignment .moodle-due[data-past="true"] { color: #c3beb4; }
.moodle-assignment small { display: block; color: #aab8a7; font-size: 10px; line-height: 1.7; margin: 6px 0; }
.moodle-assignment details { margin-top: 10px; font-size: 10px; }
.moodle-assignment summary { color: #bdc9bb; cursor: pointer; }
.moodle-assignment .moodle-description { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 11px; line-height: 1.8; margin: 10px 0; }
.moodle-material-list { list-style: none; margin: 0; padding-left: 0; }
.moodle-material-list li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(var(--accent), .1); }
.moodle-material-copy { flex: 1; min-width: 0; }
.moodle-material-copy strong { display: block; color: #d8e9df; font-size: 11px; font-weight: 400; overflow-wrap: anywhere; line-height: 1.7; }
.moodle-material-copy small { display: block; color: #aab8a7; font-size: 9px; line-height: 1.8; overflow-wrap: anywhere; }
.moodle-file-button { flex: 0 0 auto; border: 1px solid rgba(var(--accent), .23); border-top-color: #ffffff30; border-radius: 9px; padding: 9px 12px; background: linear-gradient(135deg, #ffffff0b, transparent), rgba(var(--deep), .12); color: #d8e9df; font: inherit; font-size: 10px; backdrop-filter: blur(12px); }
.moodle-file-button:hover { border-color: rgba(var(--accent), .5); }
.moodle-file-button:disabled { opacity: .5; cursor: default; }
.tool-detail > .moodle-note { margin: 26px 0 0; color: #aab8a7; font-size: 10px; line-height: 1.8; }
.moodle-form button:disabled, .moodle-actions button:disabled { opacity: .5; cursor: default; }
.account-service .tool-icon { flex-basis: 26px; width: 26px; height: 26px; border-radius: 7px; }
.account-service .tool-icon svg { width: 19px; height: 19px; }
.account-service .canva-letter, .account-service .notion-letter { font-size: 21px; }
.account-service .calendar-number { font-size: 12px; }
.account-service .tool-icon-calendar { border-top-width: 4px; }
@media (max-width: 900px) {
  .connections-page.tool-catalog { width: calc(100% - 72px); }
  .tool-grid { column-gap: 28px; }
}
@media (max-width: 700px) {
  .connections-page.tool-catalog { width: calc(100% - 52px); padding: 22px 0 38px; }
  .tool-toolbar { align-items: stretch; flex-direction: column; gap: 16px; margin: 24px 0 28px; }
  .tool-search { width: 100%; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-group { margin-top: 27px; }
  .tool-entry > summary { min-height: 72px; }
}
@media (max-width: 360px) {
  .connections-page.tool-catalog { width: calc(100% - 40px); }
  .tool-entry > summary { gap: 11px; }
  .tool-name { font-size: 13px; }
  .tool-description { font-size: 10px; }
  .moodle-mode-choice { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .tool-entry > summary, .tool-expand { transition: none; }
}
