    .dropdown {
      position: relative;
      display: inline-block;
    }

    .dropdown-content {
      display: none;
      position: absolute;
      right: 0;
      top: 100%;
      background-color: white;
      min-width: 280px;
      box-shadow: 0 8px 16px rgba(0,0,0,0.1);
      border-radius: 8px;
      border: 1px solid #ddd;
      z-index: 1000;
      margin-top: 8px;
      padding: 16px;
      font-size: 14px;
      line-height: 1.4;
    }

    .dropdown-content.show {
      display: block;
      animation: fadeIn 0.2s ease-out;
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(-10px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .dropdown-content::before {
      content: '';
      position: absolute;
      top: -8px;
      right: 20px;
      width: 0;
      height: 0;
      border-left: 8px solid transparent;
      border-right: 8px solid transparent;
      border-bottom: 8px solid white;
    }

    .drawings-section {
      position: relative;
      z-index: 1;
      width: 100%;
      max-width: 900px;
      margin: 70px auto 0;
      text-align: left;
    }

    .drawings-section[hidden] { display: none; }

    .drawings-header {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 18px;
    }

    .drawings-title {
      font-size: 1.35rem;
      font-weight: 600;
      color: #fff;
      margin: 0;
      letter-spacing: -0.2px;
    }

    .drawings-link {
      font-size: 0.9rem;
      font-weight: 500;
      color: rgba(255, 255, 255, 0.85);
      text-decoration: none;
      border-bottom: 1px solid rgba(255, 255, 255, 0.35);
      padding-bottom: 1px;
      transition: all 0.2s ease;
      white-space: nowrap;
    }

    .drawings-link:hover {
      color: #fff;
      border-bottom-color: #fff;
    }

    .drawings-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
      gap: 18px;
    }

    .drawing-card {
      background: rgba(255, 255, 255, 0.12);
      backdrop-filter: blur(20px);
      border: 1px solid rgba(255, 255, 255, 0.22);
      border-radius: 16px;
      padding: 12px;
      text-decoration: none;
      display: flex;
      flex-direction: column;
      gap: 10px;
      transition: all 0.25s ease;
    }

    .drawing-card:hover {
      transform: translateY(-4px);
      background: rgba(255, 255, 255, 0.2);
      box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
    }

    .drawing-thumb {
      height: 110px;
      border-radius: 10px;
      background: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }

    .drawing-thumb img {
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
    }

    .drawing-thumb .thumb-placeholder {
      font-size: 1.8rem;
      color: #cbd5e1;
    }

    .drawing-name {
      font-size: 0.95rem;
      font-weight: 600;
      color: #fff;
      line-height: 1.35;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .drawing-time {
      font-size: 0.8rem;
      color: rgba(255, 255, 255, 0.75);
      margin-top: -6px;
    }

    /* The "start something new" tile, deliberately lighter than a real card. */
    .drawing-card.new-card {
      align-items: center;
      justify-content: center;
      min-height: 168px;
      border-style: dashed;
      border-color: rgba(255, 255, 255, 0.4);
      background: rgba(255, 255, 255, 0.06);
      gap: 6px;
    }

    .drawing-card.new-card .plus {
      font-size: 1.9rem;
      font-weight: 300;
      color: #fff;
      line-height: 1;
    }

    .drawings-message {
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(20px);
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 16px;
      padding: 22px 26px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      flex-wrap: wrap;
    }

    .drawings-message p {
      margin: 0;
      color: rgba(255, 255, 255, 0.92);
      font-size: 1rem;
      line-height: 1.5;
      max-width: 52ch;
    }

    /* Account controls in the navbar */
    .auth-btn {
      background: linear-gradient(135deg, #8861ca 0%, #7650c5 100%);
      color: #fff;
      border: none;
      padding: 10px 18px;
      border-radius: 10px;
      font-size: 14px;
      font-weight: 600;
      font-family: 'Inter', sans-serif;
      cursor: pointer;
      transition: all 0.2s ease;
      box-shadow: 0 4px 12px rgba(72, 187, 120, 0.25);
      white-space: nowrap;
    }

    .auth-btn:hover {
      transform: translateY(-1px);
      box-shadow: 0 6px 18px rgba(72, 187, 120, 0.35);
    }

    .auth-btn.secondary {
      background: rgba(255, 255, 255, 0.18);
      border: 1px solid rgba(255, 255, 255, 0.4);
      box-shadow: none;
      color: #fff;
    }

    .auth-btn.secondary:hover {
      background: rgba(255, 255, 255, 0.28);
      box-shadow: none;
    }

    .avatar-btn {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      border: none;
      background: linear-gradient(135deg, #8861ca 0%, #7650c5 100%);
      color: #fff;
      font-size: 15px;
      font-weight: 600;
      font-family: 'Inter', sans-serif;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 2px 8px rgba(72, 187, 120, 0.3);
    }

    .account-email {
      font-size: 13px;
      color: #4a5568;
      word-break: break-all;
      margin-bottom: 12px;
    }

    .account-label {
      font-size: 11px;
      letter-spacing: 0.05em;
      color: #94a3b8;
      font-weight: 600;
    }

    .account-signout {
      width: 100%;
      padding: 9px 0;
      font-size: 13px;
      font-weight: 500;
      font-family: 'Inter', sans-serif;
      color: #334155;
      background: #f1f5f9;
      border: 1px solid #e2e8f0;
      border-radius: 8px;
      cursor: pointer;
    }

    .account-signout:hover { background: #e2e8f0; }

    /* Sign-in dialog */
    .auth-overlay {
      position: fixed;
      inset: 0;
      background: rgba(15, 23, 42, 0.55);
      backdrop-filter: blur(4px);
      z-index: 2000;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
    }

    .auth-overlay[hidden] { display: none; }

    .auth-dialog {
      background: #fff;
      border-radius: 16px;
      box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
      padding: 30px;
      width: 390px;
      max-width: 100%;
      text-align: left;
    }

    .auth-dialog h2 {
      margin: 0;
      font-size: 1.25rem;
      font-weight: 600;
      color: #1a202c;
      text-align: center;
    }

    .auth-dialog .auth-sub {
      margin: 8px 0 0;
      font-size: 0.85rem;
      color: #718096;
      text-align: center;
      line-height: 1.5;
    }

    .auth-tabs {
      display: flex;
      gap: 4px;
      background: #f1f5f9;
      padding: 4px;
      border-radius: 10px;
      margin: 20px 0 18px;
    }

    .auth-tab {
      flex: 1;
      padding: 9px 0;
      border: none;
      border-radius: 7px;
      background: transparent;
      color: #64748b;
      font-size: 13.5px;
      font-weight: 600;
      font-family: 'Inter', sans-serif;
      cursor: pointer;
      transition: all 0.15s ease;
    }

    .auth-tab.active {
      background: #fff;
      color: #7650c5;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    }

    .auth-field { margin-bottom: 14px; }

    .auth-field label {
      display: block;
      font-size: 12px;
      font-weight: 600;
      color: #4a5568;
      margin-bottom: 6px;
    }

    .auth-field input {
      width: 100%;
      padding: 10px 12px;
      font-size: 14px;
      font-family: 'Inter', sans-serif;
      color: #1a202c;
      border: 1px solid #dbe2ea;
      border-radius: 8px;
      outline: none;
      transition: all 0.15s ease;
    }

    .auth-field input:focus {
      border-color: #8861ca;
      box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.15);
    }

    .auth-submit {
      width: 100%;
      margin-top: 4px;
      padding: 12px 0;
      font-size: 14.5px;
      font-weight: 600;
      font-family: 'Inter', sans-serif;
      color: #fff;
      background: linear-gradient(135deg, #8861ca 0%, #7650c5 100%);
      border: none;
      border-radius: 8px;
      cursor: pointer;
    }

    .auth-submit:disabled { opacity: 0.6; cursor: default; }

    .auth-cancel {
      width: 100%;
      margin-top: 10px;
      padding: 9px 0;
      font-size: 13px;
      font-family: 'Inter', sans-serif;
      color: #64748b;
      background: #f1f5f9;
      border: 1px solid #e2e8f0;
      border-radius: 8px;
      cursor: pointer;
    }

    .auth-note {
      margin: 14px 0 0;
      font-size: 11.5px;
      color: #a0aec0;
      text-align: center;
      line-height: 1.5;
    }

    .auth-alert {
      margin-top: 14px;
      padding: 9px 11px;
      border-radius: 8px;
      font-size: 12.5px;
      line-height: 1.45;
    }

    .auth-alert[hidden] { display: none; }

    .auth-alert.error {
      background: #fdecec;
      border: 1px solid #f5c6c6;
      color: #a32020;
    }

    .auth-alert.ok {
      background: #eaf3ea;
      border: 1px solid #c4e0c4;
      color: #256b2b;
    }

    .auth-divider {
      display: flex;
      align-items: center;
      gap: 10px;
      margin: 16px 0;
    }

    .auth-divider::before,
    .auth-divider::after {
      content: '';
      flex: 1;
      height: 1px;
      background: #edf1f5;
    }

    .auth-divider span {
      font-size: 11px;
      color: #b6c0cc;
      letter-spacing: 0.05em;
    }

    .google-btn {
      width: 100%;
      padding: 10px 0;
      font-size: 14px;
      font-weight: 500;
      font-family: 'Inter', sans-serif;
      color: #3c4043;
      background: #fff;
      border: 1px solid #dbe2ea;
      border-radius: 8px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
    }

    .google-btn:hover { background: #f7f8fa; }

    .auth-forgot {
      background: none;
      border: none;
      padding: 0;
      font-size: 12px;
      color: #94a3b8;
      cursor: pointer;
      font-family: 'Inter', sans-serif;
      text-decoration: underline;
      margin-bottom: 4px;
    }


    * { box-sizing: border-box; }
    [hidden] { display: none !important; }
    body { isolation: isolate; margin: 0; font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; line-height: 1.6; background: #f3f1fa; color: #29263e; }
    button, input, select { font: inherit; }
    button, a, input, select { -webkit-tap-highlight-color: transparent; }
    :focus-visible { outline: 3px solid #7953d2; outline-offset: 3px; }
    .navbar { height: 76px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
    .navbar-left, .navbar-right { display: flex; align-items: center; gap: 12px; }
    .home-btn { display: flex; align-items: center; gap: 10px; color: #403456; text-decoration: none; font-size: 18px; font-weight: 500; letter-spacing: -.5px; }
    .logo { width: 33px; height: 33px; object-fit: contain; }
    .auth-btn, .auth-submit { background: #7250c4; border-radius: 8px; font-family: inherit; }
    .auth-btn:hover { background: #6141ad; transform: none; box-shadow: none; }
    .auth-tab.active { background: #7250c4; color: #fff; }
    .app-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); min-height: calc(100vh - 76px); padding: 0 20px 20px 12px; gap: 12px; }
    .sidebar { padding: 16px 8px; display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
    .sidebar button { display: flex; align-items: center; gap: 12px; border: 0; background: none; padding: 12px 18px; border-radius: 24px; text-align: left; color: #655c76; cursor: pointer; font-size: 14px; }
    .sidebar button[aria-current="page"] { background: #e2d8f6; color: #563693; font-weight: 600; }
    .sidebar button:hover { background: #e9e2f6; }
    .sidebar svg { width: 20px; height: 20px; flex-shrink: 0; }
    .sidebar-note { padding: 12px 18px; font-size: 11px; color: #746a83; margin-top: auto; }
    .main-container { background: #fff; border: 1px solid #e9e3f2; border-radius: 20px; padding: 32px 36px; min-width: 0; }
    .page-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
    h1 { font-size: 26px; font-weight: 500; letter-spacing: -.6px; margin: 0; }
    .folder-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(180px,1fr)); gap: 12px; margin: 14px 0 28px; }
    .folder-card { display: flex; align-items: center; background: #f3effa; border: 1px solid #e4dbf1; border-radius: 12px; min-width: 0; }
    .folder-card button { border: 0; background: transparent; padding: 16px 12px; color: #59437a; cursor: pointer; }
    .folder-card .folder-open { display: flex; align-items: center; gap: 10px; flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
    .folder-open svg { width: 23px; height: 23px; flex-shrink: 0; }
    #folder-area h2 { font-size: 16px; font-weight: 500; }
    #folder-dialog { border: 1px solid #ded3ef; border-radius: 16px; padding: 24px; width: min(400px,85vw); color: #40344f; }
    #folder-dialog::backdrop { background: #23173466; }
    #folder-dialog h2 { margin-top: 0; font-size: 20px; }
    #folder-dialog input, #folder-dialog select { display: block; box-sizing: border-box; width: 100%; margin: 8px 0 20px; padding: 12px; border: 1px solid #cbb9e6; border-radius: 8px; font: inherit; }
    .folder-dialog-actions { display: flex; gap: 12px; justify-content: flex-end; }
    .folder-dialog-actions button,#folder-back,#folder-remove { padding: 9px 16px; border: 1px solid #ded3ef; border-radius: 8px; background: white; color: #654495; cursor: pointer; }
    #folder-save { background: #7850c4; color: white; } #folder-error { color: #9a3048; }
    #new-menu > button { display: block; width: 100%; text-align: left; font: inherit; padding: 12px; border: 0; background: white; color: #4c3a68; border-radius: 8px; cursor: pointer; }
    #new-menu > button:hover { background: #f2ecfa; } #new-menu > button span { display: block; font-size: 12px; color: #80738f; }
    body::after { content: ''; position: fixed; z-index: -1; left: 0; bottom: 0; width: min(72vw, 620px); height: min(72vh, 680px); pointer-events: none; opacity: .52; background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22720%22%20height%3D%22900%22%20viewBox%3D%220%200%20720%20900%22%3E%3Cdefs%3E%3Cpattern%20id%3D%22hex%22%20width%3D%2272%22%20height%3D%2241.569219%22%20patternUnits%3D%22userSpaceOnUse%22%20patternTransform%3D%22rotate%28-12%29%22%3E%3Cpath%20d%3D%22M0%2020.78461%2012%200H36L48%2020.78461%2036%2041.569219H12ZM48%2020.78461H72%22%20fill%3D%22none%22%20stroke%3D%22%23977fbc%22%20stroke-width%3D%22.75%22%2F%3E%3C%2Fpattern%3E%3C%2Fdefs%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22url%28%23hex%29%22%2F%3E%3C%2Fsvg%3E"); background-repeat: no-repeat; mask-image: linear-gradient(to top,black,transparent),linear-gradient(to right,black,transparent); mask-composite: intersect; }
    .document-actions { position: absolute; right: 12px; bottom: 54px; z-index: 5; background: white; border: 1px solid #e3d9ef; border-radius: 10px; padding: 5px; box-shadow: 0 6px 24px #49326320; min-width: 165px; }
    .document-actions[hidden] { display: none; }
    .document-actions button { display: block; width: 100%; text-align: left; border: 0; background: white; color: #58416e; padding: 10px 12px; border-radius: 6px; cursor: pointer; }
    .document-actions button:hover, .document-actions button:focus-visible { background: #f0e8fa; }
    .list-view .document-actions { top: 48px; bottom: auto; }
    .document-more { font-size: 18px; line-height: 20px; }
    .trash-note { color: #82758f; font-size: 13px; margin-bottom: 18px; }
    .document-item { position: relative; min-width: 0; }
    .document-item .drawing-name, .document-item .drawing-time { padding-right: 30px; }
    .document-more { position: absolute; right: 15px; bottom: 17px; background: #f0e8fa; border: 1px solid #ded0ee; border-radius: 7px; color: #7650c5; padding: 6px 9px; cursor: pointer; }
    .document-more:hover { background: #e4d5f5; }
    .list-view .document-more { top: 16px; bottom: auto; }
    .list-view .drawing-card { padding-right: 50px; }
    .library-notice { color: #7650c5; font-size: 14px; }
    .creation-menu { position: relative; }
    .creation-menu button { border: 0; cursor: pointer; font-family: inherit; }
    #new-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 290px; background: white; border: 1px solid #e4dbef; border-radius: 12px; padding: 6px; box-shadow: 0 10px 30px #39235324; z-index: 20; }
    #new-menu[hidden] { display: none; }
    #new-menu a { display: block; padding: 13px; border-radius: 8px; color: #493063; text-decoration: none; font-weight: 500; }
    #new-menu a:hover, #new-menu a:focus { background: #eee5fa; }
    #new-menu span { display: block; color: #89799b; font-size: 12px; font-weight: 400; margin-top: 4px; }
    .page-header { gap: 16px; }
    .page-header h1 { margin-right: auto; }
    .new-drawing { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; background: #e5d6f7; color: #603b92; padding: 12px 20px; border-radius: 12px; font-size: 14px; font-weight: 500; }
    .new-drawing:hover { background: #d9c2f0; box-shadow: 0 2px 6px #603b9212; }
    .new-drawing span { font-size: 23px; line-height: 1; }
    .library-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
    .search-field { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #f4f1f9; border: 1px solid transparent; border-radius: 10px; flex: 1; max-width: 520px; min-width: 180px; }
    .search-field:focus-within { border-color: #9779cc; background: white; }
    .search-field svg { width: 18px; height: 18px; color: #82728f; flex-shrink: 0; }
    .search-field input { width: 100%; min-width: 0; border: 0; outline: none; background: none; font-size: 13px; color: #403456; }
    .library-tools select { padding: 9px 12px; font-size: 12px; color: #655c76; background: white; border: 1px solid #e4deec; border-radius: 8px; }
    .view-toggle { display: flex; margin-left: auto; padding: 3px; border: 1px solid #e4deec; border-radius: 8px; }
    .view-toggle button { display: grid; place-items: center; border: 0; background: none; border-radius: 5px; color: #81758d; padding: 7px 10px; cursor: pointer; }
    .view-toggle button[aria-pressed="true"] { background: #eae1f8; color: #6842a9; }
    .view-toggle svg { width: 17px; height: 17px; }
    .drawings-section { margin: 0; max-width: none; }
    .drawings-header { margin-bottom: 14px; }
    .drawings-title { color: #655c76; font-size: 13px; font-weight: 500; letter-spacing: 0; }
    .drawings-link { color: #7653b7; font-size: 12px; border: 0; }
    .drawings-grid { grid-template-columns: repeat(auto-fill,minmax(210px,1fr)); gap: 18px; }
    .drawing-card { padding: 10px; border: 1px solid #e6dfef; border-radius: 12px; background: #f8f5fc; backdrop-filter: none; gap: 9px; }
    .drawing-card:nth-child(3n+2) { background: #f3eefb; border-color: #e0d4f0; }
    .drawing-card:nth-child(3n+3) { background: #faf0fc; border-color: #ebd8ef; }
    .drawing-card:hover { transform: none; background: #ece3f8; border-color: #b8a2d5; box-shadow: 0 3px 10px #4932630b; }
    .drawing-thumb { height: 160px; border-radius: 6px; background: white; }
    .drawing-thumb .thumb-placeholder { color: #b6a3cf; font-size: 42px; }
    .drawing-name { color: #403456; font-size: 13px; font-weight: 500; padding: 0 4px; }
    .drawing-time { color: #82758f; font-size: 11px; margin: -4px 0 2px; padding: 0 4px; }
    .drawings-grid.list-view { display: flex; flex-direction: column; gap: 0; }
    .list-view .drawing-card { display: grid; grid-template-columns: 44px minmax(0,1fr) 180px; gap: 16px; align-items: center; border: 0; border-bottom: 1px solid #ece7f3; border-radius: 0; padding: 12px 8px; background: white; }
    .list-view .drawing-card:hover { background: #f7f3fc; }
    .list-view .drawing-thumb { height: 38px; background: #f3eef9; }
    .list-view .thumb-placeholder { font-size: 24px; }
    .list-view .drawing-time { margin: 0; }
    .empty-library { min-height: 300px; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; gap: 12px; padding: 40px 20px; border: 1px dashed #e3dbea; border-radius: 12px; background: #fdfbff; }
    .empty-icon { display: grid; place-items: center; background: #e9def8; color: #8866b6; width: 64px; height: 64px; border-radius: 18px; font-size: 32px; }
    .empty-library h2 { font-size: 16px; font-weight: 500; margin: 6px 0 0; }
    .empty-library p { color: #82758f; font-size: 13px; margin: 0; max-width: 330px; }
    .drawings-message { padding: 14px 18px; border-radius: 10px; border: 1px solid #e4deee; background: #f7f3fc; backdrop-filter: none; margin-top: 20px; gap: 12px; }
    .drawings-message p { font-size: 12px; color: #746583; }
    .drawings-message button { font-size: 12px; }
    .about-content { max-width: 700px; }
    .about-content h2 { font-size: 17px; font-weight: 500; margin-top: 32px; }
    .about-content .author-credit { font-size: 17px; font-weight: 500; color: #7650c5; margin: 0 0 16px; }
    .about-content p, .about-content li { font-size: 14px; color: #72667f; }
    .about-content a { color: #7653b7; }
    .about-tag { display: inline-block; padding: 4px 10px; background: #e9def8; color: #7650c5; border-radius: 5px; font-size: 12px; }
    .auth-overlay { z-index: 2000; }
    .auth-dialog { max-height: calc(100dvh - 32px); overflow-y: auto; }
    @media(max-width: 800px) {
      .app-layout { grid-template-columns: 160px minmax(0,1fr); }
      .main-container { padding: 24px; }
      .library-tools select { max-width: 150px; }
    }
    @media(max-width: 600px) {
      .navbar { padding: 0 18px; height: 68px; }
      .home-btn { font-size: 16px; }
      .app-layout { display: block; padding: 0 10px 10px; }
      .sidebar { flex-direction: row; flex-wrap: wrap; padding: 0 4px 12px; gap: 6px; }
      .sidebar button { padding: 8px 14px; font-size: 12px; }
      .sidebar-note { display: none; }
      .main-container { padding: 22px 16px; border-radius: 16px; min-height: calc(100vh - 122px); }
      h1 { font-size: 23px; }
      .new-drawing { padding: 10px 13px; font-size: 12px; gap: 8px; }
      .search-field { flex-basis: 100%; max-width: none; }
      .drawings-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
      .drawing-thumb { height: 110px; }
      .list-view .drawing-card { grid-template-columns: 34px minmax(0,1fr); gap: 8px; }
      .list-view .drawing-time { grid-column: 2; }
    }
    @media(prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Folder-matched card surfaces; previews and colored type icons stay distinct. */
.document-item[data-document-kind] .drawing-card {background:#f3effa;border-color:#e4dbf1}
.document-item[data-document-kind] .drawing-card:hover {background:#ede6f7;border-color:#cdbce3;box-shadow:0 3px 12px #30243f0d}

/* Document types use the same symbols in navigation, creation and cards. */
.document-type-icon {display:inline-flex;align-items:center;justify-content:center;flex:none;width:24px;height:24px;color:#7650c5;}
.document-type-icon svg {width:21px;height:21px;}
.drawing-name {display:flex;align-items:center;gap:8px;min-height:28px;}
.drawing-name > span {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
[data-document-kind="drawing"] .document-type-icon,#new-drawing-link .document-type-icon {color:#7650c5;}
[data-document-kind="animation"] .document-type-icon,#new-animation-link .document-type-icon {color:#aa417d;}
[data-document-kind="figure"] .document-type-icon,#new-figure-link .document-type-icon {color:#4b61b5;}
#new-menu > a,#new-menu > button {position:relative;padding-left:46px;}
#new-menu .document-type-icon {position:absolute;left:12px;top:14px;}

/* Release packaging disables discovery; localhost keeps the full feature menu. */
html[data-figures-discoverable="false"] :is(#nav-figures,#new-figure-link) {display:none!important;}
