[hidden] { display: none !important; }
* { box-sizing: border-box; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button:disabled, input:disabled { cursor: wait; opacity: .6; }
:focus-visible { outline: 3px solid #818cf8; outline-offset: 3px; }
.member-bar { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 14px; min-height: 32px; }
.home-page .member-bar { max-width: 820px; margin: -30px auto 30px; }
.member-name { overflow-wrap: anywhere; }
.member-admin-badge { padding: 2px 8px; border-radius: 999px; background: #dcfce7; color: #166534; font-size: 12px; }
.member-button { border: 1px solid #a6a6c7; border-radius: 6px; padding: 6px 12px; background: rgba(255,255,255,.35); color: #292946; cursor: pointer; }
.member-link { border: 0; padding: 4px; background: transparent; color: #303088; text-decoration: underline; cursor: pointer; }
.member-muted { color: #626273; font-size: 13px; }
.home-page { margin: 8px; padding-bottom: 24px; }
.home-page #switchableImage { max-width: 100%; }
.home-page audio, .home-page select { max-width: 100%; }
.bookmark-section { max-width: 640px; margin: 28px auto; border-top: 1px solid #b9b9d5; border-bottom: 1px solid #b9b9d5; padding: 16px 12px; }
.bookmark-section h2 { font-size: 18px; font-weight: 400; margin: 0 0 12px; }
.bookmark-section p { font-size: 14px; margin: 10px 0; }
.bookmark-list { list-style: none; padding: 0; margin: 10px 0; }
.bookmark-item { display: flex; gap: 8px; align-items: center; justify-content: center; padding: 7px 0; }
.bookmark-item a { overflow-wrap: anywhere; min-width: 0; }
.bookmark-item .bookmark-actions { flex-shrink: 0; }
.bookmark-actions button { font-size: 12px; }
.member-dialog { width: min(430px, calc(100% - 32px)); max-height: calc(100dvh - 40px); overflow-y: auto; border: 1px solid #bbbcd4; border-radius: 12px; padding: 24px; background: #f8f8ff; color: #292946; text-align: left; box-shadow: 0 16px 60px #15152540; }
.member-dialog::backdrop { background: #16162c66; }
.member-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.member-dialog h2 { margin: 0; font-size: 22px; }
.member-dialog .member-close { font-size: 24px; line-height: 1; text-decoration: none; color: #5c5c70; }
.member-dialog form { display: flex; flex-direction: column; align-items: stretch; gap: 14px; margin: 0; }
.member-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.member-field input { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid #bfc0d4; border-radius: 7px; background: white; color: #262638; }
.member-field small { font-size: 12px; color: #68687b; }
.member-check { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.member-check input { accent-color: #6060a4; width: 16px; height: 16px; }
.member-submit { border: none; border-radius: 7px; padding: 11px 16px; background: #67679b; color: #fff; cursor: pointer; }
.member-switch { text-align: center; margin-top: 14px; font-size: 14px; }
.member-error { color: #a52135; font-size: 14px; line-height: 1.55; margin: 8px 0; overflow-wrap: anywhere; }
.member-success { color: #166534; }
.member-notice:empty, .member-error:empty { display: none; }
.member-notice { font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.registration-review { width: min(560px, calc(100% - 32px)); }
.registration-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0 8px; }
.registration-list { list-style: none; margin: 0; padding: 0; max-height: 360px; overflow-y: auto; }
.registration-item { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid #ddddeb; }
.registration-details { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.registration-username { font-size: 15px; overflow-wrap: anywhere; }
.registration-actions { display: flex; gap: 6px; flex-shrink: 0; }
.registration-actions .member-button { padding: 5px 10px; font-size: 13px; }
.registration-reject { color: #a52135; }
.registration-empty { padding: 18px 0; }
.account-role { flex-shrink: 0; }
.account-role-ordinary { padding: 2px 8px; border-radius: 999px; background: #e5e7eb; color: #4b5563; font-size: 12px; }
.disk-page .container { width: calc(100% - 32px); }
.disk-heading { gap: 16px; flex-wrap: wrap; }
.disk-title { display: flex; align-items: center; gap: 16px; }
.disk-title a { font-size: 13px; font-weight: normal; }
.disk-page .member-button { border-color: #cbd5e1; background: #f8fafc; color: #334155; }
.disk-page .member-link { color: #2563eb; }
.disk-page .member-submit { background: #2563eb; }
.disk-tabs { display: flex; gap: 8px; margin: 20px 0 10px; border-bottom: 1px solid #e5e7eb; padding-bottom: 12px; }
.disk-tab { padding: 9px 18px; border-radius: 999px; border: 0; background: #e5e7eb; color: #374151; cursor: pointer; }
.disk-tab[aria-selected="true"] { background: #2563eb; color: #fff; }
.disk-description { font-size: 13px; color: #6b7280; line-height: 1.65; margin: 8px 0; }
.disk-usage { font-size: 13px; color: #4b5563; margin: 8px 0; }
.disk-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.disk-tools input[type="search"] { padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 999px; flex: 1 1 160px; min-width: 0; }
.disk-tools select { max-width: 100%; }
.disk-page .breadcrumb { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; overflow-wrap: anywhere; }
.breadcrumb button { font: inherit; padding: 3px; border: 0; color: #2563eb; background: transparent; cursor: pointer; max-width: 100%; overflow-wrap: anywhere; }
.breadcrumb button[aria-current] { color: #374151; }
.disk-page .file-left { min-width: 0; flex: 1; }
.disk-page .file-name { overflow-wrap: anywhere; text-align: left; padding: 0; border: 0; background: transparent; cursor: pointer; }
.disk-page .file-meta { overflow-wrap: anywhere; }
.disk-page .file-right { flex-wrap: wrap; justify-content: flex-end; }
.disk-page .file-item { gap: 12px; }
.disk-page .file-size { margin-right: 4px; }
.disk-page #upload-form { align-items: flex-start; }
.disk-page input[type="file"] { min-width: 0; max-width: 100%; flex-basis: 240px; }
.disk-page .upload-button { border-radius: 999px; border: 0; padding: 10px 20px; background: #2563eb; color: #fff; cursor: pointer; }
.upload-results { list-style: none; padding: 0; margin: 8px 0; font-size: 13px; overflow-wrap: anywhere; }
.upload-results li { margin: 7px 0; }
.upload-results progress { width: 100%; height: 10px; accent-color: #2563eb; }
.disk-login-state { text-align: center; padding: 26px 10px; font-size: 14px; color: #6b7280; }
.move-breadcrumb { margin: 14px 0 8px; display: flex; gap: 4px; flex-wrap: wrap; font-size: 13px; }
.move-folder-list { list-style: none; padding: 0; margin: 8px 0 14px; max-height: 240px; overflow-y: auto; border-top: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; }
.move-folder-list li + li { border-top: 1px solid #e5e7eb; }
.move-folder-button { display: block; width: 100%; padding: 11px 6px; border: 0; background: transparent; text-align: left; color: #2563eb; cursor: pointer; overflow-wrap: anywhere; }
.move-folder-button:hover:not(:disabled) { background: #eef2ff; }
.move-folder-button:disabled { cursor: not-allowed; }
@media (max-width: 600px) {
  .home-page .member-bar { margin-top: -30px; justify-content: center; }
  .disk-page .container { width: calc(100% - 20px); margin: 16px auto; padding: 20px 16px; }
  .disk-heading { align-items: flex-start; }
  .disk-page .member-bar { justify-content: flex-start; }
  .disk-page .file-item { align-items: flex-start; flex-wrap: wrap; }
  .disk-page .file-left { flex-basis: 100%; }
  .disk-page .file-right { justify-content: flex-start; }
  .bookmark-item { align-items: flex-start; }
  .member-dialog { padding: 20px; }
  .registration-item { flex-wrap: wrap; gap: 10px; }
}
